[sage-support] exp(I*x) -- cos(x)+I*sin(x)

2011-03-25 Thread Dmitry Shkirmanov
Hello, list, i need a function that can exp(I*x) -- cos(x)+I*sin(x) At http://wiki.sagemath.org/symbolics/rewrite i found the rewrite function. But this function is not mentioned in Sage reference manual, and Sage 4.6.2 does not know this function: NameError: name 'rewrite' is not defined How i

Re: [sage-support] exp(I*x) -- cos(x)+I*sin(x)

2011-03-25 Thread Laurent
How i can exp(I*x) -- cos(x)+I*sin(x) ? I wrote the following for personnal use : def ThisIsEulerFormula(t): Return t, but in a simplified form. We force Sage to see that exp(ix) is equal to cos(x)+i*sin(x) and then to simplify the trigonometric expressions. INPUT

[sage-support] Plot order in Graphics() object

2011-03-25 Thread Jeroen Demeyer
Hello sage-support, Is there way to change the *order* that objects from a Graphics object are plotted (i.e. the Z-order)? Consider the following code in the notebook for a 2D plot:: p1 = plot(sin, 0, 10, thickness=10, color='green') p2 = polygon([(0,0), (10,0), (10,1), (0,1)], color='gray') p3

[sage-support] Re: Plot order in Graphics() object

2011-03-25 Thread Jason Grout
On 3/25/11 3:02 AM, Jeroen Demeyer wrote: Hello sage-support, Is there way to change the *order* that objects from a Graphics object are plotted (i.e. the Z-order)? Consider the following code in the notebook for a 2D plot:: p1 = plot(sin, 0, 10, thickness=10, color='green') p2 =

Re: [sage-support] function output to list

2011-03-25 Thread Alastair Irving
On 25/03/2011 13:15, clodemil wrote: Hi all, Here is a list: mesures=[[172,91,57],[181,88,58],[146,88,56],[191,85,59],[171,92,50], [157,93,55],[180,84,48],[142,77,60],[169,80,45],[162,76,59], [167,104,73],[166,81,53],[145,78,59],[163,98,58],[192,90,50], [184,85,60],[151,77,56]] # [[P

[sage-support] Re: exp(I*x) -- cos(x)+I*sin(x)

2011-03-25 Thread Dmitry Shkirmanov
     return (t.real_part()+I*t.imag_part()).simplify_trig() Thank you very much, i works. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at

[sage-support] Re: Substitute vectors into a symbolic equation

2011-03-25 Thread kcrisman
On Mar 25, 9:59 pm, ancienthart joalheag...@gmail.com wrote: 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

[sage-support] Re: latex() returns wrong code

2011-03-25 Thread kcrisman
On Mar 25, 9:45 pm, andres.ordonez andres.felipe.ordo...@gmail.com wrote: Hi, I checked the FAQ in the sage documentation page, but didn't find where should I post a bug that I've found. So I'll post it here. If this isn't the right place, please move it to the right place or let me know

[sage-support] Re: Polynomial input as product of factors without * between them

2011-03-25 Thread John H Palmieri
On Friday, March 25, 2011 9:35:13 PM UTC-7, Surendran Karippadath wrote: If the multiplication sign * is absent ( say by mistake!) what is SAGE evaluating? For example: x=var('x');f=1/((x-1)(x-3)); f.limit(x=1) returns -1/3 diff(f,x) returns -1/(x - 4)^2 plot(f,(x,0,10)) plots a