ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 06 Apr 2019 12:52:46 -0500Line,Plane, Points 3D, Intersection,http://ask.sagemath.org/question/46033/lineplane-points-3d-intersection/Is there a tutorial on
-analytical geometry(vectors) :
plane
line
2D circle in 3D,
plot chains of vectors, basicaly the everything what this thing can do: https://www.geogebra.org/3d?lang=de
well allmost everything in vector geometry
for python or sagemath.
Maybe someone saw a book or tutorial on this
I can not find anything on this.
I have managed to plot points
from sage.plot.plot3d.shapes2 import frame3d
F=frame3d([0,0,0],vector([10,10,10]),color='red')
A=point3d((4,3,2),size=10,color='red',opacity=.5)
e=0.2
eps=vector([4+e,3+e,2+e])
T = text3d('A',eps)
F+A+T
I didnt manage to label, point A(4,3,2), to to do it? I would rather not put the coordinates as a string. Is there something like in c++ "The point is %d"
Is there a better way to plot? I need the frame, since the plot 3d is not accepting, text, or maybe i am wrong?
Would there by a natural way to plot x,y,z axes?
Here is the Code
https://share.cocalc.com/share/a3f14e05-7729-406f-97c5-be5b73646381/vector/ebene.sagews?viewer=sharethethaSat, 06 Apr 2019 12:52:46 -0500http://ask.sagemath.org/question/46033/Conditional Plot, plot f(x+iy) if g(x+iy) satisfies some kind of conditionhttp://ask.sagemath.org/question/45445/conditional-plot-plot-fxiy-if-gxiy-satisfies-some-kind-of-condition/Let's say I have two functions f(zeta) and g(zeta), and I'd like to have 3D-plot and Contour Plot of f(zeta) if g(zeta) in a certain range.
I have defined f(zeta) and g(zeta), and then I tried this command, but Sage said the syntax is not valid.
B=implicit_plot(lambda x,y : float(f(x+y*I)),if 1<g(x+y*I)<3,(-5,5),(-5,5)))
I am pretty new with Sage math, so please bear with me if the question is too trivial....
JacobsonRadicalWed, 13 Feb 2019 04:55:53 -0600http://ask.sagemath.org/question/45445/Error rending 3d Scene...http://ask.sagemath.org/question/27300/error-rending-3d-scene/I have been attempting to render 3d objects and have been successful for the whole day until just recently. I am constantly getting the following error:
"error rendering 3d scene -- error downloading /blobs/836a1670-2631-40ea-87a8-a4047e9e432d.sage3d?uuid=836a1670-2631-40ea-87a8-a4047e9e432d"
Here is my code
counter3 = 0
counter2 = 0
counter1 = 0
#array for the list of points
pts = []
# Your substitution
w = WordMorphism('1->12,2->13,3->1')
# Your word you wish to apply the substitution to
toApplyOn = "1"
# Number of times to apply the substition
upTo = 4
# empty graphics object
P=Graphics()
for j in range(upTo):
word = w(toApplyOn)
toApplyOn = word
for x in word:
previousVector = v
if int(x) == 3:
counter3 += 1
if int(x) == 2:
counter2 += 1
if int(x) == 1:
counter1 += 1
v = (counter1, counter2, counter3)
pts.append(v)
if not int(x) == (len(word)-1):
if int(x) == 3:
P += line3d([v,previousVector],color='red')
if int(x) == 2:
P += line3d([v,previousVector],color='blue')
if int(x) == 1:
P += line3d([v,previousVector],color='green')
P+=point3d(pts,color='black')
P
My code is suppose to output a 3D image (a neat looking staircase).
I am using the Sage Math Cloud as my environment. Does anyone else get this error? Does anyone have ideas why I receive this error?OzeraAltThu, 09 Jul 2015 18:48:13 -0500http://ask.sagemath.org/question/27300/