[sage-support] Re: atan2 throws "divide by zero"

2010-03-17 Thread Alec Mihailovs
On Mar 17, 9:11 pm, G B wrote: > atan2(-pi,0) -->  RuntimeError: power::eval(): division by zero I got the same in the new 4.3.4.rc0 Sage version that I've just installed. Playing with that, I noticed also the following strange thing: sage: n(atan2(-sqrt(2),0)) -1/2*pi While it looks corre

Re: [sage-support] Help starting Mathematica with Sage

2010-03-17 Thread Jeff Post
On Wednesday 17 March 2010 20:28, Dr. David Kirkby wrote: > > I> don't know what started using carriage return and line feed (CR/LF), I believe it was CP/M, upon which DOS was based. Jeff -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send

Re: [sage-support] Help starting Mathematica with Sage

2010-03-17 Thread Dr. David Kirkby
Young, Michael I. (DFRC-SR) wrote: I am having a problem getting Mathematica to start from Sage on my Mac. I have created the “math” file in my local directory and made sure that it is executable but when I try to start Mathematica I get the message “RuntimeError: Unable to start mathematica b

[sage-support] Re: atan2 throws "divide by zero"

2010-03-17 Thread G B
Should have also mentioned: Sage 4.3.3 OS X 10.6.2 64bit Intel MacBook Pro On Mar 17, 5:38 pm, G B wrote: > While waiting to be approved, I think I narrowed this down to a very > simple test case. > > atan2(3,0)   --> 1/2*pi > atan2(-3,0)  --> -1/2*pi > atan2(pi,0)  --> 1/2*pi > atan2(-pi,0) --

[sage-support] Re: newbie: plot() questions

2010-03-17 Thread G B
Try plot(f(t), ymax=17, ymin=-12) On Mar 17, 2:32 pm, Nareto wrote: > Hello, I have to plot an exponential function with vertical asymptote > in point tc, but > > plot(f(t), (tc  - e, tc + e)); > > gives me unreadable plots for any values of e - if e is to large the > curvature is not apreciab

[sage-support] Seeking Cython-101 lesson

2010-03-17 Thread kstueve
Hi, I would like to rewrite the C code in ticket 8135 (Riemann's explicit formula for the prime counting function, based on code from Oliveira e Silva) in Cython so that it can be added to Sage, but I don't have any experience programming in Cython. I am seeking someone at UW skilled in Cython to

[sage-support] atan2 throws "divide by zero"

2010-03-17 Thread G B
While waiting to be approved, I think I narrowed this down to a very simple test case. atan2(3,0) --> 1/2*pi atan2(-3,0) --> -1/2*pi atan2(pi,0) --> 1/2*pi atan2(-pi,0) --> RuntimeError: power::eval(): division by zero Any ideas how to get around this? Thanks-- Greg Here's the full trac

[sage-support] newbie: plot() questions

2010-03-17 Thread Nareto
Hello, I have to plot an exponential function with vertical asymptote in point tc, but plot(f(t), (tc - e, tc + e)); gives me unreadable plots for any values of e - if e is to large the curvature is not apreciable (i.e. the plot is confused with the axes) but if it's too small I'm getting things

Re: [sage-support] Help starting Mathematica with Sage

2010-03-17 Thread Mike Hansen
On Wed, Mar 17, 2010 at 2:02 PM, Young, Michael I. (DFRC-SR) wrote: > I am having a problem getting Mathematica to start from Sage on my Mac.  I > have created the “math” file in my local directory and made sure that it is What directory do you mean by "local directory"? In order for it to work,

[sage-support] Help starting Mathematica with Sage

2010-03-17 Thread Young, Michael I. (DFRC-SR)
I am having a problem getting Mathematica to start from Sage on my Mac. I have created the "math" file in my local directory and made sure that it is executable but when I try to start Mathematica I get the message "RuntimeError: Unable to start mathematica because the command 'math' failed."

[sage-support] Re: Entering matrices whose elements are functions of row/column indices?

2010-03-17 Thread Alec Mihailovs
On Mar 16, 10:47 pm, Alec Mihailovs wrote: > By the way, vector doesn't work with integer numpy arrays, > > from numpy import array > vector(array([1,2])) > > Traceback (most recent call last): That shouldn't be too hard to implement - in particular, the following works, sage: from numpy import

[sage-support] Re: Syntax highlight in SAGE Calculator?

2010-03-17 Thread Alec Mihailovs
On Mar 16, 5:05 pm, dmitrey wrote: > hi all, > is it possible somehow to perform syntax highlight in SAGE Calculator, > at least for viewing published worksheets? > > Regards, D. In the documentation (in the notebook) the syntax is highlighted (I mean colored). See, for example, vector? vector?

Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-17 Thread wxuyec
Thank you! - 原文 - 发件人: Jaap Spies 主 题: Re: 回复: [sage-support] Re: 3D plot in sage时 间: 2010年3月16日 05:43:18wxu...@sohu.com wrote:> Thank you very much!>> I will try this.>You could try the experimental version found here:http://sage.math.washington.edu/home/jsp/SPKGS/ETS/Jaap-- To post to

Re: [sage-support] Re: How to use the result of solve

2010-03-17 Thread Jose Guzman
Dear BFJ, thanks a lot for your answer. It works very nice! Alternatively, I found that using the rhs() method also works. My idea was to substitute the algebraic expression of the solution, and inserted as denominator of a new function: sage: f(x) = ( 1-e**(t/tau0) )*(e**(-x/tau1)) # this i