Re: [sage-support] Re: Error: LaTeX does not seem to be installed.

2011-08-17 Thread G B
Yep, that did it. Comparing the path variables showed them to be quite different. I've added the following to my init.sage: os.environ["PATH"]+=":/usr/texbin:/usr/local/bin" and everything runs happy. Just adding /usr/texbin didn't work because Sage also needs to find 'convert' which I have

Re: [sage-support] Re: Error: LaTeX does not seem to be installed.

2011-08-17 Thread G B
The paths are definitely different for terminal launched and app launched Sage, and app launched Sage doesn't include /usr/texbin. Sorry to sound so helpless, but what syntax would I use to add it to my init.sage? I don't currently have one, and I've come up blank searching for it in the docum

[sage-support] Re: Error: LaTeX does not seem to be installed.

2011-08-16 Thread G B
I'm noticing that the problem only happens when launching Sage.app. If I install the command line version, it detects Latex just fine. Also, if I launch the sage binary from within the Sage.app package (the one in Contents/Resources/sage, not the one closer to the app root), it also seems to

[sage-support] Re: Error: LaTeX does not seem to be installed.

2011-08-16 Thread G B
I've installed MacTex and I'm still having the same problem. You won't see this problem for most typeset results because Sage attempts to use jsMath, but it turns up when typesetting a result that jsMath can't handle (or if you force it to use go straight to latex by using the jsmath_avoid_list

Re: [sage-support] Re: adding noise

2010-04-02 Thread G B
like g(x)=sin(x) + `f(x)` Am I making sense, or just digging my credibility hole deeper? In my defense, I've only had a couple days of playtime with the system so far... Cheers-- Greg On Fri, Apr 2, 2010 at 5:42 PM, Simon King wrote: > Hi! > > On 3 Apr., 00:30, G B wrote:

[sage-support] Re: adding noise

2010-04-02 Thread G B
Ok, I'll take that as an admonition to not give up too soon. =) It does feel like a toolset that would give me a lot of capability if I can only learn to control it... Thanks again for the help. Cheers-- Greg On Apr 2, 4:31 pm, William Stein wrote: > On Fri, Apr 2, 2010 at 3:30

[sage-support] Re: adding noise

2010-04-02 Thread G B
gain confidence, lose track of these various function types, and not realize that the results I'm getting are incorrect. On Mar 30, 7:04 pm, William Stein wrote: > On Tue, Mar 30, 2010 at 7:01 PM, G B wrote: > > Apologies for being dense, but I'm missing something.  All three

[sage-support] Re: adding noise

2010-03-30 Thread G B
Should mention this is 4.3.3, 64 bit OS X 10.6.2 On Mar 30, 7:01 pm, G B wrote: > Apologies for being dense, but I'm missing something.  All three forms > ( f(x), def f(x) and f=lambda x: ) are giving the same results. > > Trying: > - > var('x') > T=

[sage-support] Re: adding noise

2010-03-30 Thread G B
--- and var('x') T=RealDistribution('gaussian',1) f=lambda x: sin(x)+ T.get_random_element() plot(f(x),(x,0,2*pi)) - all give me a clean sine with a random offset, rather than sine +noise... On Mar 30, 2:30 pm, William Stein wrote: > On Tue, Mar 30,

[sage-support] adding noise

2010-03-30 Thread G B
Hi-- I'm trying to figure out how to use RealDistributions to model noise. For example, I would like to model a signal+noise and tried using this construct: T=RealDistribution('gaussian',1) f(x)=sin(x)+T.get_random_element() plot(f(x),(x,0,2*pi)) Unfortunately, that only calls get_random_element

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

2010-03-30 Thread G B
For anyone interested, it looks as though the GiNaC project has released a fix: http://www.cebix.net/pipermail/ginac-devel/2010-March/001732.html I've posted this to the dev list as well. Cheers-- Greg On Mar 23, 7:00 pm, G B wrote: > I won't clutter the discussion with the f

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

2010-03-23 Thread G B
On Mar 23, 1:18 am, Ondrej Certik wrote: > Hi Minh! > > > > > > On Mon, Mar 22, 2010 at 8:55 PM, Minh Nguyen wrote: > > Hi Greg, > > > On Tue, Mar 23, 2010 at 9:35 AM, G B wrote: > >> Hi Ondrej-- > > >> Sorry to turn helpless, but I'm

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

2010-03-22 Thread G B
le? Thanks for following up. Thanks-- Greg On Mar 19, 7:32 pm, Ondrej Certik wrote: > On Fri, Mar 19, 2010 at 7:03 PM, Ondrej Certik wrote: > > On Thu, Mar 18, 2010 at 5:10 PM, G B wrote: > >> Thanks.  I tried that but it's causing different problems: > >>

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

2010-03-18 Thread G B
27;substitute' The code with the .substitute line seems to work for (t%30 <> 0) so I think I've formatted my equations properly. Apologies if I'm doing something horribly hackish-- I'm new to Sage. Any other ideas? Thanks-- Greg On Mar 18, 1:40 pm, Alec Mihailovs w

[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)  

[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] 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