[sage-support] Substitute vectors into a symbolic equation

2011-03-25 Thread ancienthart
Hi guys, back again. It seems that I can never find what I look for in the reference documents, but it always becomes embarrassingly easy once someone explains it to me. I've been playing around with the displacement reaction for viscous drag ballistics, and have derived the following equation:

[sage-support] Substitute expressions

2011-02-09 Thread Dox
Hi people, I think I saw it somewhere but cannot find it (perhaps I dreamed about it), I'm computing ...GR stuff... where f and g are functions of r var('t,x,y,z,r,theta,phi'); coord = [t,x,y,z,r,theta,phi] f = function('f', r) g = function('g', r) when I compute, the result looks like, 3*D[0]

[sage-support] substitute

2009-10-22 Thread Ichnich
Hi, something does not work anymore in my notebook (with version 4.1.2 ubuntu 64bit): var('a,b,c,I') model(I)=a*I+b model_exp = exp(I)**a*(b) sol1_l={b: 5.0, a: 1.1} model_sol1_l(I)=model_exp.subs(sol1_l) The notebook hangs-up. It's critical on the parameter a, if you change it to 1.0 it's o.

[sage-support] substitute values into a muttivariate polynomial

2009-06-07 Thread amps
I want to substitute n values into polynomial with n variables. I guess the syntax to do this is (if g is my polynomial with indeterminates z[1], ..., z[n]). f.subs({z[1]:value1, z[2]:value2, ..., z[n]:valuen}) but how do I actually do this? n is not set, so I just can't type this out. --~--~-

[sage-support] substitute solutions into an expression.

2009-02-15 Thread sillsd...@gmail.com
Greetings, I am a completely new to SAGE as of a few days ago. I have used Maple and Mathematica for years, and it is easy to do what I am describing below in those systems. I assume it is also easy to do in sage, but I have not been able to find it in the documentation. Here's the story: I a