[sage-support] Re: displaying intermediate computational steps

2009-01-04 Thread William Stein
On Sun, Jan 4, 2009 at 8:31 PM, wrote: > > Hi > > (1) I typed the following equations into sage > > eq1 = t1 == ( l / v0 ) > eq2 = v1 * ( t2 - t1 ) / 2 + v2 * ( t2 - t1 )/2 > eq3 = vav == ( ( 2 * l ) / t2 ) > solve( [eq1, eq2, eq3], t2, vav, l ) > > I get the correct answer, but directly the an

[sage-support] displaying intermediate computational steps

2009-01-04 Thread freewill1729
Hi (1) I typed the following equations into sage eq1 = t1 == ( l / v0 ) eq2 = v1 * ( t2 - t1 ) / 2 + v2 * ( t2 - t1 )/2 eq3 = vav == ( ( 2 * l ) / t2 ) solve( [eq1, eq2, eq3], t2, vav, l ) I get the correct answer, but directly the answer. Is there a way to output the intermedite results as w

[sage-support] Re: mathematica notebooks?

2009-01-04 Thread Tim Lahey
On Jan 4, 2009, at 9:35 PM, calcp...@aol.com wrote: > > Hi, I see that sage can call mathematica functions - I suppose that > only works if I have mathematica installed. > > What I'm wondering is if I can import a mathmatica notebook into sage? > We used to have mathematica at my school and I re

[sage-support] Re: mathematica notebooks?

2009-01-04 Thread William Stein
On Sun, Jan 4, 2009 at 6:35 PM, wrote: > > Hi, I see that sage can call mathematica functions - I suppose that > only works if I have mathematica installed. > > What I'm wondering is if I can import a mathmatica notebook into sage? > We used to have mathematica at my school and I remember using

[sage-support] mathematica notebooks?

2009-01-04 Thread calcpage
Hi, I see that sage can call mathematica functions - I suppose that only works if I have mathematica installed. What I'm wondering is if I can import a mathmatica notebook into sage? We used to have mathematica at my school and I remember using some very nice mathematica notebooks by Jerry Uh

[sage-support] Re: How to test if an algebraic number is real

2009-01-04 Thread John Cremona
I tried this in 3.2.3.final and it works fine: sage: a,b = matrix(QQ,[[0,1],[-4,0]]).eigenvalues(); a,b (2*I, -2*I) sage: a in RR False sage: b in RR False so perhaps you should upgrade? John Cremona 2009/1/4 Shing Hing Man : > > Hi, > I would like to test if an eigenvalue of a matrix over t

[sage-support] How to test if an algebraic number is real

2009-01-04 Thread Shing Hing Man
Hi, I would like to test if an eigenvalue of a matrix over the rationals is a real number. (or The roots of the characteristic polynomial are all real.) I am using x in RR Somehow, when x=2i, 'x in RR' produced the following error. Thanks in advance for any assistance! Shing PS

[sage-support] Re: precision is not set to lowest when compositing a real with a float

2009-01-04 Thread ggrafendorfer
Hi Robert, thanks for your answer, I not sure if I know the difference between coercion and conversion, could you explain it to me? thanks, Georg --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this grou

[sage-support] Re: problem running combinatorial functions

2009-01-04 Thread davidp
Thanks. By problem went away with Sage 3.2.2. Dave On Dec 27 2008, 10:55 am, mabshoff wrote: > On Dec 27, 9:11 am,DavidPerkinson wrote: > > Hi Dave, > > > > > Here is a typical error when I try to run a combinatorial function: > > > sage: combinations([1,2],3) > > -

[sage-support] Re: embedding sage

2009-01-04 Thread William Stein
On Sun, Jan 4, 2009 at 5:16 AM, gerhard wrote: > > Consistent with what I was guessing. > Since I need have the notebook invoke my own executable, > rather than python (just an init function will not do), > I have to find where the process is spawned and insure I have > an option that allows me t

[sage-support] Re: How to make Sage to solve the equation?

2009-01-04 Thread John Cremona
2009/1/4 mabshoff : > > > > On Jan 3, 5:05 pm, "William Stein" wrote: >> On Sat, Jan 3, 2009 at 4:48 PM, mabshoff >> >> >> >> wrote: >> >> > On Jan 3, 4:33 pm, calcp...@aol.com wrote: >> >> > Hi AJG, >> >> >> Exactly, the function log base 2 of x is not defined at 0. >> >> So, why won't sage ret

[sage-support] Re: embedding sage

2009-01-04 Thread gerhard
Consistent with what I was guessing. Since I need have the notebook invoke my own executable, rather than python (just an init function will not do), I have to find where the process is spawned and insure I have an option that allows me to do something different. So where do I look? The way I sta

[sage-support] Re: Latex expression to png

2009-01-04 Thread Shing Hing Man
I am using Sage 3.2,1 and it does not work with a complicated filename. I will try it in Sage 3.2.3. Geogr: Thanks for the reply! I'll try latexmath2y after I find out how to import a python class into Sage. Thanks! Shing On Jan 3, 11:25 pm, "William Stein" wrote: > On Sat, Jan 3, 2009 at 2:0