Hi!
J is an equation with variables defined in ## my variables
What I want to do is plot the J versus x
x is a list of values lets say from -100 to 40
so how do I change from x=1 to x=[-100,..,40]
and fix this error:
"TypeError: cannot coerce type '<type 'list'>' into a
SymbolicExpression."
I used list_plot(X,Y) if X and Y are both lists like X=[2,..,2] and
Y=[-2,..,5] and it worked
also no problems with plot(X,Y) if X and Y are both symbolic and not
lists
but I am lost when one variable is a list of values and other
variables are fixed values
## My variables
var=('G','GAMA', 'BETA', 'THETA', 'MI', 'N',x,'Gs','Gz','Jz','Js')
#Values
BETA=1
THETA=9.2
N=3
MI=5
x=[-100,..,40]
GAMA=1
## eq for G
Gz=(GAMA * (exp(x) + BETA * sqrt(THETA) * exp(x/THETA)))
Gs=(sqrt(2* 3.14 * ((N**2 * MI) - (2 * x))))
G=(Gz/Gs)
## eq for J
Jz=(G * sqrt(N**2 - 2*x/MI))
Js=(1 + BETA + G)
J=(Jz/Js)
show(Gz)
show(Gs)
show(G)
show(Jz)
show(Js)
show(J)
plot(J,x) ## I get an error
ist_plot(J,x) ## I get an error
I need help, advice or directions :)
Thank you for your good work
I like learning Sage
Boris
student
total beginner (no experience in Mathematica or other programs...Sage
is the first)
Sage 3.1.4 using notebook
GNU/Linux
Ubuntu 8.1
KDE4.1
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---