Re: [sage-support] fill between

2011-10-11 Thread Tom Boothby
Add a plot of one filled curve to another, whose color is set to white. On Mon, Oct 10, 2011 at 4:32 PM, Dan Aldrich daldr...@earthlink.net wrote: Been trying to set up my graphs so I can select fill areas of a distribution curve. So far all I've been able to do is fill the entire curve.  Any

Re: [sage-support] Re: fill between

2011-10-11 Thread Dan Aldrich
I'm trying to fill in the bell curve between two points, like plus and minus 1 sigma. -d At 09:19 PM 10/10/2011, you wrote: What exactly are you trying to fill? Can you find a picture showing an example of what you are trying to achieve? -- To post to this group, send email to

[sage-support] dumps() and loads() of symbolic functions problem

2011-10-11 Thread CDSousa
Hi, When doing x = var('x'); f = function('f',x) ; s = dumps(f) ; loads(s) I get a RuntimeError: unknown function 'f' in archive. I have equal problem with save()/load() and db_save()/db(). -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

Re: [sage-support] Re: fill between

2011-10-11 Thread Håkan Granath
I'm trying to fill in the bell curve between two points, like plus and minus 1 sigma. Maybe like this: p = plot(f,(-pi,pi),ymax = .4, ticks=[1,[]]) p += plot(f,(-s,s),fill = 'axis') /Håkan -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

Re: [sage-support] Re: fill between

2011-10-11 Thread daldrich
Yeah, that did it. Thanks! # distribution function f(x) = 1/sqrt(2*pi)*e^(.5*(-x^2)) s = 1 p = plot(f,(-pi,pi),ymax = .45, ticks=[1,[]]) p += line([(s,0),(s,f(s))],linestyle = 'dashed') p += line([(-s,0),(-s,f(-s))],linestyle = 'dashed') p += text($\\mu$ = 0,(0.4,0.05)) p += plot(f,(-s,s),fill

[sage-support] Re: memory leak in mixed integer programming?

2011-10-11 Thread Nathann Cohen
This happens no matter if I use solver=GLPK or solver=coin (cbc is installed), so it does not seem to be a problem of the underlying milp- solver. Pompompom That's probably my fault :-D I will try to deal with it today. I'll keep this thread updated :-) Nathann -- To post to

[sage-support] Re Superimpose various region_plot's

2011-10-11 Thread Zheng
The original discussion is here:http://groups.google.com/group/sage- support/browse_thread/thread/3f4ad882ba420693?hl=en. However, since the discussion seems closed I can't reply to it so I just opened this another discussion. I'm using sage4.7.1 and running it on ubuntu 11.04. I tried to create

[sage-support] Re Superimpose various region_plot's

2011-10-11 Thread Zheng Han
(Sorry the previous email I forget to attach the plot file. I would delete it in the google mailgroup.) The original discussion is here:http://groups.google.com/group/sage- support/browse_thread/thread/3f4ad882ba420693?hl=en. However, since the discussion seems closed I can't reply to it so I just

[sage-support] Re: Show intermediate steps for solve(), diff(), integral(), etc...

2011-10-11 Thread kcrisman
I'm looking for a way to show the intermediate steps Sage goes through when evaluating an expression. To give a very simple example:    x=var('x')    solve(x*x+6x+8,x) evaluates to:    [x == -2, x == -4] However I would like the option to see the intermediate steps, thus something

[sage-support] Re: Re Superimpose various region_plot's

2011-10-11 Thread Jason Grout
On 10/11/11 9:44 AM, Zheng Han wrote: The points in the area of region_plot are covered by the region_plot. I'm not sure whether I failed to patch it or the patch indeed fails to work for points. Thx. Most of the patch failed to apply, as the messages said. You could do this instead:

[sage-support] Re: Show intermediate steps for solve(), diff(), integral(), etc...

2011-10-11 Thread Jason Grout
On 10/11/11 10:13 AM, kcrisman wrote: I'm looking for a way to show the intermediate steps Sage goes through when evaluating an expression. To give a very simple example: x=var('x') solve(x*x+6x+8,x) evaluates to: [x == -2, x == -4] However I would like the option to see the

[sage-support] Question about sagenb.org

2011-10-11 Thread juaninf
Exist sagenb.org with openmpi module? -- 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 http://groups.google.com/group/sage-support URL:

[sage-support] Re: Re Superimpose various region_plot's

2011-10-11 Thread Zheng
Wow it works perfect! Thank you so much! I should take more careful look of the manual and help functions. Thank you. On Oct 11, 11:10 am, Jason Grout jason-s...@creativetrax.com wrote: On 10/11/11 9:44 AM, Zheng Han wrote: The points in the area of region_plot are covered by the region_plot.

[sage-support] Re: dumps() and loads() of symbolic functions problem

2011-10-11 Thread Nils Bruin
On Oct 11, 4:16 am, CDSousa cris...@gmail.com wrote: x = var('x'); f = function('f',x) ; s = dumps(f) ; loads(s) I get a  RuntimeError: unknown function 'f' in archive. Excellent example. That's definitely a bug. You must be the first person who tries to pickle a formal function (i.e., one

[sage-support] Sagetex fails to interpret input

2011-10-11 Thread Jose Guzman
I am trying a minimal example of Sage to start using it for my lectures: When I try the following file (example.text) \documentclass{article} \usepackage{sagetex} \begin{document} one plus two is $\sage{1+2}$ \end{document} pdflatex example.text sage example.sage it gives me the following

[sage-support] Question about Kernel Matrix

2011-10-11 Thread juaninf
Hi everyone I want know if exist a parallel implementation to kernels of matrices with openmpi in sage thanks -- 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

[sage-support] Re: Question about Kernel Matrix

2011-10-11 Thread Jason Grout
On 10/11/11 5:27 PM, juaninf wrote: Hi everyone I want know if exist a parallel implementation to kernels of matrices with openmpi in sage I'm pretty sure that nothing in Sage uses openmpi by default (and probably not at all). We don't include any mpi packages in the default Sage.

Re: [sage-support] Sagetex fails to interpret input

2011-10-11 Thread Dan Drake
On Tue, 11 Oct 2011 at 11:09PM +0200, Jose Guzman wrote: AttributeError: 'sage.rings.integer.Integer' object has no attribute 'rstrip' Running Sage on example.sage failed! Fix example.tex and try again. I moved $SAGEROOT/local/share/texmf/tex/ to /usr/local/share/texmf following the