Ask Your Question

jakupl's profile - activity

2023-06-22 23:56:49 +0100 received badge  Popular Question (source)
2021-12-06 13:30:06 +0100 commented answer Manipulate dummy variable after solving trig

Thank you! I had been trying something like this, but it's the curly brackets that got me. Not experienced enough in pyt

2021-12-06 13:29:21 +0100 commented answer Manipulate dummy variable after solving trig

Thank you! I had been trying something like this, but it's the curly brackets that got me. Not experienced enough in pyt

2021-12-06 13:29:15 +0100 commented answer Manipulate dummy variable after solving trig

Thank you! I had been trying something like this, but it's the curly brackets that got me. Not experienced enough in pyt

2021-12-06 13:29:01 +0100 commented answer Manipulate dummy variable after solving trig

Thank you! I had been trying something like this, but it's the curly brackets that got me. Not experienced enough in pyt

2021-12-06 13:26:02 +0100 marked best answer Manipulate dummy variable after solving trig

Hi! This might be somewhat basic, but is there a way to directly reference the dummy variable that pops up, when solving trigonometric functions?

sy(t)=sin(t)/2+7*sin(t/3)/2
sols=solve(sy(t)==0,t, to_poly_solve='force')
sols[0]

returns:

t == 3*pi + 6*pi*z27541

This dummy variable obviously changes every time the command is run, so there is no way of directly referencing it without changing the reference every time. Obviously this doesn't work:

sols[0](z=0)

The closest I have come, is just blindly referencing the variable which works if there are no other variables in the right hand side, like this:

sols[0].rhs()(0)

but this gives the obnoxious error message, that "Substitution using function-call syntax and unnamed arguments is deprecated (...)"

Is there a way to cleanly tell sage to evaluate an expression, when all z variables are 0 or 1 etc?

2021-12-06 05:42:53 +0100 received badge  Nice Question (source)
2021-12-06 00:40:35 +0100 edited question Manipulate dummy variable after solving trig

Manipulate dummy variable after solving trig Hi! This might be somewhat basic, but is there a way to directly reference

2021-12-06 00:40:32 +0100 edited question Manipulate dummy variable after solving trig

Manipulate dummy variable from Maxima Hi! This might be somewhat basic, but is there a way to directly reference the dum

2021-12-06 00:39:51 +0100 edited question Manipulate dummy variable after solving trig

Manipulate dummy variable from Maxima Hi! This might be somewhat basic, but is there a way to directly reference the dum

2021-12-06 00:38:51 +0100 edited question Manipulate dummy variable after solving trig

Manipulate dummy variable from Maxima Hi! This might be somewhat basic, but is there a way to directly reference the dum

2021-12-06 00:37:27 +0100 edited question Manipulate dummy variable after solving trig

Manipulate dummy variable from Maxima Hi! This might be somewhat basic, but is there a way to directly reference the dum

2021-12-06 00:36:56 +0100 asked a question Manipulate dummy variable after solving trig

Manipulate dummy variable from Maxima Hi! This might be somewhat basic, but is there a way to directly reference the dum

2021-11-28 22:13:08 +0100 commented question trunc of a 3D surface not very clean

Yeah. I would probably remove the mesh, and add plot_points=190

2021-11-23 01:31:25 +0100 received badge  Self-Learner (source)
2021-11-23 01:31:25 +0100 received badge  Teacher (source)
2021-11-21 23:52:22 +0100 edited answer %display latex makes output centered (in exported tex file)

Ok after lots of digging, I actually came up with a hack, that fixes it. I have no idea if it breaks something else, but

2021-11-18 01:16:51 +0100 answered a question %display latex makes output centered (in exported tex file)

Ok after lots of digging, I actually came up with a hack, that fixes it. I have no idea if it breaks something else, but

2021-11-18 01:08:01 +0100 edited answer ymin and ymax not working

Does this work? f_x = (x**3 - x**2 + 3*x + 4) / (x**2 - 4*x + 3) _ = plot(f_x, (x, 0, 4), detect_poles=True) _.show(ym

2021-11-18 00:51:04 +0100 answered a question ymin and ymax not working

Does this work? f_x = (x3 - x2 + 3x + 4) / (x2 - 4x + 3) _ = plot(f_x, (x, 0, 4), detect_poles=True) _.show(ymin=-100,

2021-11-17 23:33:16 +0100 received badge  Nice Question (source)
2021-11-17 17:13:00 +0100 edited question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-17 17:09:43 +0100 edited question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-17 00:21:49 +0100 edited question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-17 00:19:38 +0100 edited question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-17 00:14:46 +0100 edited question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-17 00:12:37 +0100 edited question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-17 00:12:25 +0100 edited question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-17 00:11:57 +0100 edited question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-17 00:11:51 +0100 received badge  Editor (source)
2021-11-17 00:11:51 +0100 edited question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-17 00:09:42 +0100 asked a question %display latex makes output centered (in exported tex file)

%display latex makes output centered (in exported tex file) My headline sums it up. I usually download my jupyter worksh

2021-11-06 23:45:18 +0100 received badge  Supporter (source)
2021-09-16 16:22:59 +0100 commented question Weird rounding error in n and N

That's a solid hypothesis! I did find a better method: sage: round(number,2) 12.09 This is probably how one should do

2021-09-16 16:22:45 +0100 commented question Weird rounding error in n and N

That's a solid hypothesis! I did find a better method: sage: round(number,2) 12.09 This is probably how one shou

2021-09-16 08:51:14 +0100 commented question Weird rounding error in n and N

Same thing happens in CoCalc, running SageMath version 9.3

2021-09-16 08:50:04 +0100 answered a question Weird rounding error in n and N

Same thing happens in CoCalc, running SageMath version 9.3

2021-09-15 22:52:41 +0100 asked a question Weird rounding error in n and N

Weird rounding error in n and N This is weird. While dabbling in sage, It seems I hit a rounding error. sage: number=18

2021-08-23 16:15:50 +0100 commented answer How to download as LaTeX, and have output boxes rendered

Yes updating solved the problem. That's awesome. Thanks for the help :)

2021-08-23 16:14:46 +0100 marked best answer How to download as LaTeX, and have output boxes rendered

I'm using the Jupyter notebook, and the "download as .tex" option works great for me. The only problem is, I want the output to be rendered. Inside the notebook, I have '%display latex' set, so all output is rendered in latex. However to my great surprise, when I export the worksheet into a .tex file, the output boxes revert to normal unformatted text. Is there a way to make the latex formatting of outputs "survive" when saving it as a LaTeX document?

I'm not afraid of writing the LaTeX myself, but this workflow needs to work for exams, where time is a factor. Thanks for your help

SageMath version 9.0, Release Date: 2020-01-01 │ │ Using Python 3.8.10. Running Linux.

I would love to attach pictures, but apparently my "karma" is insufficient :D

2021-08-23 16:14:46 +0100 received badge  Scholar (source)
2021-08-23 11:51:14 +0100 received badge  Student (source)
2021-08-23 11:50:26 +0100 asked a question How to download as LaTeX, and have output boxes rendered

How to download as LaTeX, and have output boxes rendered I'm using the Jupyter notebook, and the "download as .tex" opti