2023-03-01 18:35:57 +0200 | received badge | ● Famous Question (source) |
2021-11-16 21:32:49 +0200 | received badge | ● Good Question (source) |
2021-11-16 19:33:36 +0200 | received badge | ● Nice Question (source) |
2021-11-16 17:22:30 +0200 | asked a question | accessibility support accessibility support Does Sage have accessibility support for Sage Math cells on the web? Navigating w/a screen reader |
2021-11-03 19:30:08 +0200 | received badge | ● Notable Question (source) |
2021-06-30 18:59:34 +0200 | marked best answer | numpy cube root 'not callable' I would like to plot the numpy.cbrt function in Sage. The example: plots a sine wave, but produces the error:
Isn't Sage passing the interval [0,pi] as an array when constructing the plot? I'd like to know why some numpy functions will work in this manner with Sage, and why others do not, and if there is a workaround. FWIW: |
2021-06-30 18:59:34 +0200 | received badge | ● Scholar (source) |
2021-06-30 18:55:06 +0200 | commented answer | numpy cube root 'not callable' Thank you. Incidentally, real_nth_root is what I wanted to compare against np.cbrt: x1 = cos(1).n() # Sage/Python sta |
2021-06-30 16:41:08 +0200 | asked a question | numpy cube root 'not callable' numpy cube root 'not callable' I would like to plot the numpy.cbrt function in Sage. The example: import numpy as np |
2020-12-24 14:43:55 +0200 | received badge | ● Popular Question (source) |
2020-11-20 16:50:39 +0200 | commented answer | Path rendering on a Surface Yes, same result. |
2020-11-20 16:50:29 +0200 | received badge | ● Supporter (source) |
2020-11-20 10:31:38 +0200 | received badge | ● Student (source) |
2020-11-20 05:37:35 +0200 | commented answer | Path rendering on a Surface Thank you -- fixed that (and above), still getting the same result. I reparametrized the path in polar coordinates as well, but I'm getting different values for r based on the rectangular --> polar conversion and the direct polar definition, for the same theta values. Curiously, the rectangular --> polar produces the closer z-coordinates. |
2020-11-19 23:25:00 +0200 | commented question | Path rendering on a Surface Thank you for pointing this out. I read https://stackoverflow.com/questions/6401167/how-do-i-pass-a-fraction-to-python-as-an-exponent-in-order-to-calculate-the-nth/6401264 (https://stackoverflow.com/questions/6...) and https://doc.sagemath.org/html/en/reference/rings_standard/sage/rings/rational.html (https://doc.sagemath.org/html/en/refe...), changed the exponents to floating point, but I get the same result. |
2020-11-18 20:02:25 +0200 | received badge | ● Editor (source) |
2020-11-18 19:59:27 +0200 | asked a question | Path rendering on a Surface I am having a discrepancy with the z-coordinates of a path on a surface. The blue path shown below is correctly embedded in the red surface. The z-coordinates for the green path are "almost" correct. I have gone over the math dozens of times. I need to compute rational powers of cosine and sine. Wondering if it could be a rounding issue? The surface is parametrized in polar coordinates. The path is parametrized in rectangular coordinates. (This is because on the full surface this portion is shifted along the x-axis. I reparametrized it polar and it seems less accurate). What I've done is:
(I've used the parameter $v$ to give the paths some "thickness") This works fine for blue, not for green. The surface height grows linearly with the radius. The blue path's radius decays linearly. The green path's radius decays non-linearly. But, I don't think that should matter, as I'm simply getting a list of points and plugging them into the height function. |
2020-05-17 20:09:13 +0200 | commented answer | plotting a Surface gradient Thank you for this! What a wonderful template. I was looking to do vectors tangent to the surface in the direction of the gradient -- I modified your code slightly https://sagecell.sagemath.org/?q=tzrxaj (here) and it looks beautiful!
and then changed it to negative gradient descent (to simulate gravity along the surface)
Greatly appreciated. I have also playing with embedding https://sagecell.sagemath.org/?q=rxmfpk (curves in 3D onto a surface) -- giving the curves some "thickness" is an interesting exercise, working on automating it, along with generating vector fields on it as above. |
2020-03-03 10:47:00 +0200 | asked a question | plotting a Surface gradient I'm looking to plot the surface gradient vector field $$\left \langle \frac{f_x}{\|\nabla f\|}, \frac{f_y}{\|\nabla f\|}, \|\nabla f\| \right \rangle$$ but only at points on the the surface $(x,y,f(x,y)$. plotvectorfield3d will plot this field everywhere in 3D. I want to restrict this to the surface only. Right now, I can plot these vectors individually by iterating along the surface, but I am wondering if someone has already tackled this more efficiently, perhaps with parameters on how to iterate. Further, it would be nice to generalize this to directional derivatives for any unit vector $\mathbf{u} = \left \langle a, b \right \rangle$. |