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

2009-01-03 Thread CalcPage
In a message dated 1/3/2009 8:44:30 P.M. Eastern Standard Time, rober...@math.washington.edu writes: Also, it's unclear how much of a "hole" you would want to see--mathematically even one pixel would be too large. Sorry, I suppose I'm spoiled by using the TI-89 graphing calculator,

[sage-support] Re: Latex expression to png

2009-01-03 Thread ggrafendorfer
Hi Shing, try http://code.google.com/p/latexmath2png/ a Python project, can be used as a command line tool as well as a Python module, and has more options, for example it is possible to specify a latex preamble, and it has a better margin fitting (I tried out the example suggested by William an

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

2009-01-03 Thread Robert Bradshaw
On Jan 3, 2009, at 4:33 PM, calcp...@aol.com wrote: > Exactly, the function log base 2 of x is not defined at 0. > So, why won't sage return some sort of domain error? Sage doesn't test to see if the function is defined on the whole domain (if this is even a decidable question in general, and

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

2009-01-03 Thread 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 return some sort of domain error? > > > W

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

2009-01-03 Thread mabshoff
On Jan 3, 5:01 pm, calcp...@aol.com wrote: > That's another issue: how do I know which package SAGE is using for a > particular task. You mention there may be a problem with maxima or > numpy, how are we to know? Well, this can be simple or difficult to find out, but in most cases some develope

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

2009-01-03 Thread William Stein
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 return some sort of domain error? > > We call numpy for the numerical roots and I guess this might b

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

2009-01-03 Thread calcpage
That's another issue: how do I know which package SAGE is using for a particular task. You mention there may be a problem with maxima or numpy, how are we to know? TIA, AJG A. Jorge Garcia Teacher and Professor mailto:calcp...@aol.com ftp://ftp.baldwinschools.net http://calcpage.tripod.com/bs

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

2009-01-03 Thread mabshoff
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 return some sort of domain error? We call numpy for the numerical roots and I guess this might be a bug there, but we will check. Somebody please open a ticket

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

2009-01-03 Thread calcpage
Exactly, the function log base 2 of x is not defined at 0. So, why won't sage return some sort of domain error? I noticed something similar when I plotted (x^2-1)/(x-1) and got the graph of x+1. I was hoping for a removeable discontinuity to show in the graph! IE a hole in y=x+1 at x=1. TIA, AJ

[sage-support] Re: embedding sage

2009-01-03 Thread Jason Grout
William Stein wrote: > On Sat, Jan 3, 2009 at 4:15 PM, gerhard wrote: >> What I am after is to interact with sage from yet another language. >> To do so, I need to start python from my own code. >> Interestingly, when I invoke the python interpreter, >> I do have access to all of the sage functio

[sage-support] Re: embedding sage

2009-01-03 Thread Jason Grout
gerhard wrote: > What I am after is to interact with sage from yet another language. > To do so, I need to start python from my own code. > Interestingly, when I invoke the python interpreter, > I do have access to all of the sage functionality, > as well as commands added by my code, e.g., >

[sage-support] Re: embedding sage

2009-01-03 Thread William Stein
On Sat, Jan 3, 2009 at 4:15 PM, gerhard wrote: > > What I am after is to interact with sage from yet another language. > To do so, I need to start python from my own code. > Interestingly, when I invoke the python interpreter, > I do have access to all of the sage functionality, > as well as comm

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

2009-01-03 Thread mabshoff
On Jan 3, 4:10 pm, calcp...@aol.com wrote: > sage: plot(x^2*log(x,2)-1, 0,2) > [nice plot so you can understand what is going on] > > sage: find_root(x^2*log(x,2)-1,1, 2) > 1.4142135623730951 > << > > Hi, I'm trying out SAGE for the first time, so I entered what you > suggested (see above). > >

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

2009-01-03 Thread Robert Bradshaw
On Jan 3, 2009, at 4:10 PM, calcp...@aol.com wrote: > sage: plot(x^2*log(x,2)-1, 0,2) > [nice plot so you can understand what is going on] > > sage: find_root(x^2*log(x,2)-1,1, 2) > 1.4142135623730951 > << > > Hi, I'm trying out SAGE for the first time, so I entered what you > suggested (see abov

[sage-support] Re: embedding sage

2009-01-03 Thread gerhard
What I am after is to interact with sage from yet another language. To do so, I need to start python from my own code. Interestingly, when I invoke the python interpreter, I do have access to all of the sage functionality, as well as commands added by my code, e.g., sage: foo

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

2009-01-03 Thread calcpage
>> sage: plot(x^2*log(x,2)-1, 0,2) [nice plot so you can understand what is going on] sage: find_root(x^2*log(x,2)-1,1, 2) 1.4142135623730951 << Hi, I'm trying out SAGE for the first time, so I entered what you suggested (see above). Now, from the plot, it there seems to be no other roots betw

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

2009-01-03 Thread William Stein
On Sat, Jan 3, 2009 at 9:00 AM, Slava wrote: > > When i try to solve this equation: > solve(x^2*log(x, 2) == 1, x); > It answers me: > [x^2 == log(2)/log(x)] > It,s true, but how can i get the numerical value of x? > sage: plot(x^2*log(x,2)-1, 0,2) [nice plot so you can understand what is go

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

2009-01-03 Thread Robert Bradshaw
On Dec 30, 2008, at 1:55 PM, ggrafendorfer wrote: > Hi, > I'm not sure, but I guess this is considered as a bug, please let me > know and I report it to trac: > > sage: a = RealField(100)(5) + float(5); type(a); a.prec() > > 100 > sage: a = float(5) + RealField(100)(5); type(a); a.prec() > > 10

[sage-support] Re: R interface, plot command: how to pass a string?

2009-01-03 Thread gerhard
great! this did indeed work. Thank you, -gerhard -- import os filename = os.tempnam('./','aaa') + '.png' r.png(file='"%s"'%filename) a=r([1.e-35,2.e-35,3.e-35,6.e-35,7.e-35,8.1e-35]);b=r([4,5,6,12,3,6]) r.plot( a, b, col=2, xlab='"%s"'%'

[sage-support] Re: R interface, plot command: how to pass a string?

2009-01-03 Thread William Stein
On Sat, Jan 3, 2009 at 1:38 PM, gerhard wrote: > > Trying to use R for plots, > > sage: import os > sage: filename = os.tempnam('./','aaa') + '.png' > sage: r.png(file='"%s"'%filename) > sage: a= r( [1.e-35, 2.e-35, 3.e-35, 6.e-35, 7.e-35, 8.1e-35 ]) > sage: b= r( [4, 5, 6, 12, 3, 6]) > sage: r.p

[sage-support] Re: embedding sage

2009-01-03 Thread mabshoff
On Jan 3, 3:35 pm, "William Stein" wrote: > On Sat, Jan 3, 2009 at 1:29 PM, gerhard wrote: > > > I used IPythonShellEmbed to embed python (and sage) in my own code, > > and got it to work from the command line, giving me access to my own > > code as a built in module. > > > Trying to switch to

[sage-support] Re: embedding sage

2009-01-03 Thread William Stein
On Sat, Jan 3, 2009 at 1:29 PM, gerhard wrote: > > I used IPythonShellEmbed to embed python (and sage) in my own code, > and got it to work from the command line, giving me access to my own > code as a built in module. > > Trying to switch to the notebook interface however looses > access to the

[sage-support] Re: Latex expression to png

2009-01-03 Thread William Stein
On Sat, Jan 3, 2009 at 2:08 PM, Shing Hing Man wrote: > > Is there a command in SAGE that converts a latex expression to png (or > gif) directly. > > The following post in the archive has a workaround. > > ttp://groups.google.com/group/sage-support/browse_thread/thread/570022e72a22d3bd/517d51a58a

[sage-support] Latex expression to png

2009-01-03 Thread Shing Hing Man
Is there a command in SAGE that converts a latex expression to png (or gif) directly. The following post in the archive has a workaround. ttp://groups.google.com/group/sage-support/browse_thread/thread/570022e72a22d3bd/517d51a58abc67f8?lnk=gst&q=Latex+to+png#517d51a58abc67f8 I wonder if there

[sage-support] R interface, plot command: how to pass a string?

2009-01-03 Thread gerhard
Trying to use R for plots, sage: import os sage: filename = os.tempnam('./','aaa') + '.png' sage: r.png(file='"%s"'%filename) sage: a= r( [1.e-35, 2.e-35, 3.e-35, 6.e-35, 7.e-35, 8.1e-35 ]) sage: b= r( [4, 5, 6, 12, 3, 6]) sage: r.plot( a, b, col=2, xlab='x', ylab='y' ) sage: r.dev_off() gets me

[sage-support] embedding sage

2009-01-03 Thread gerhard
I used IPythonShellEmbed to embed python (and sage) in my own code, and got it to work from the command line, giving me access to my own code as a built in module. Trying to switch to the notebook interface however looses access to the module. Where would I need to look to figure out what might b

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

2009-01-03 Thread Slava
When i try to solve this equation: solve(x^2*log(x, 2) == 1, x); It answers me: [x^2 == log(2)/log(x)] It,s true, but how can i get the numerical value of x? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscri