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

2010-03-16 Thread ma...@mendelu.cz
Hi, you have something like syntax highlight in sws2tex, see http://user.mendelu.cz/marik/sage/polynomials.pdf or http://user.mendelu.cz/marik/sage/vrstevnice.pdf sws2tex: http://bitbucket.org/whuss/sws2tex/ Robert Marik On 16 bře, 22:05, dmitrey wrote: > hi all, > is it possible somehow to per

Re: [sage-support] Simplify trig and sin(0.500000000000000*pi)

2010-03-16 Thread Ajay Rawat
dear Stefan first of all sin(pi/2) = 1.0 to understand the problem arises in your computation u should read about floating point arithmetic and about how numbers are stored in computers. check this very good article. http://docs.sun.com/source/806-3568/ncg_goldberg.html i hope this may clarify y

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

2010-03-16 Thread Alec Mihailovs
By the way, vector doesn't work with integer numpy arrays, from numpy import array vector(array([1,2])) Traceback (most recent call last): File "", line 1, in File "_sage_input_60.py", line 5, in vector(array([_sage_const_1 ,_sage_const_2 ])) File "", line 1, in File "free_module_

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

2010-03-16 Thread Mike Hansen
On Tue, Mar 16, 2010 at 1:06 PM, Alec Mihailovs wrote: > What about vector(3,f), f.vector(3), and f.matrix(3,4) or > f.matrix(5) ? I didn't do anything about vector() -- I could probably get to it later. There's no good way to make a syntax like f.matrix() or f.vector() work, and it's not someth

[sage-support] interact on www.sagenb.org

2010-03-16 Thread BFJ
I'm using @interact to make a demo for my calculus students involving area minimization: @interact def _(s=slider(-10,-0.1,0.1,default=-2.5,label='slope')): html('Try to minimize the area of the triangle whose hypotenuse passes through (2,3)') G=line([(0,-2*s+3), (-3/s+2,0)]) #s*(x-2)+3,(x

[sage-support] Re: Change of behaviour of mwrank in SAGE 4.3.3

2010-03-16 Thread Julian
Thank you for yor clear explanation. Julián Aguirre On 16 mar, 18:23, John Cremona wrote: > Let me explain (as the author of mwrank).    There was a bug in > mwrank, found by James Wiegandt and Edray Goins, which meant that in > some cases for curves with rational 2-torsion the computed upper bo

[sage-support] Re: Transfer notebooks from windows to ubuntu and/or importing downloaded notebooks

2010-03-16 Thread zsharon
Thanks. Zach -- 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: http://www.sagemath.org

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

2010-03-16 Thread BFJ
To get the value of 'x' from solve you can use the option solultion_dict = true as follows: sage: S = solve(derivative(f,x)==0,x, solution_dict=true) sage: S[0][x] tau0*log(tau1/tau0 + 1) sage: S[0][x].subs(tau0=0.5, tau1=5.0) 1.19894763639919 Also, using the 'N' function will evaluate numerical

Re: [sage-support] Simplify trig and sin(0.500000000000000*pi)

2010-03-16 Thread Laurent
stefan.o...@gmail.com ha scritto: Hello, I have a term t that I simplify with t.simplify_trig(). Parts of the result look something like this: 65*sin(0.500*pi)*sin(x2)*cos(x3)*sin(x5)+... My limited math understanding tells me that sin(0.5*pi) is zero, sin(pi/2)=0, that's rign

[sage-support] Simplify trig and sin(0.500000000000000*pi)

2010-03-16 Thread stefan.o...@gmail.com
Hello, I have a term t that I simplify with t.simplify_trig(). Parts of the result look something like this: 65*sin(0.500*pi)*sin(x2)*cos(x3)*sin(x5)+... My limited math understanding tells me that sin(0.5*pi) is zero, therefore the term shouldn't be there. Is there a way to let sage

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

2010-03-16 Thread William Stein
2010/3/16 dmitrey : > hi all, > is it possible somehow to perform syntax highlight in SAGE Calculator, > at least for viewing published worksheets? No, not yet. William > > Regards, D. > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, s

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

2010-03-16 Thread Jose Guzman
Hi everybody again. Does anybody if it is possible to use the result of the function solve to insert it in a function to resolve it analitically. For example, I want to get the peak of the following function >>> var('tau0,tau1') >>> f(x) = (1-e**(-x/tau0))*(e**(-x/tau1)) For that, I simply d

[sage-support] Syntax highlight in SAGE Calculator?

2010-03-16 Thread dmitrey
hi all, is it possible somehow to perform syntax highlight in SAGE Calculator, at least for viewing published worksheets? Regards, D. -- 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

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

2010-03-16 Thread Alec Mihailovs
On Mar 16, 3:57 pm, Mike Hansen wrote: > On Tue, Mar 16, 2010 at 12:38 PM, Alec Mihailovs > > wrote: > > Will it work as matrix(5,f) as well, or only as matrix(5,5,f) ? > > It now works with both. > > --Mike That's great! What about vector(3,f), f.vector(3), and f.matrix(3,4) or f.matrix(5) ?

Re: [sage-support] Plotting within an interval.

2010-03-16 Thread Jose Guzman
Thanks a lot David, this is what I needed. Just if somebody else might need it, i will resolve the problem: # declare t and tau as symbolic variables var('t') var('tau') # monoexponential equation g(t) = e**(-t/tau) # 2-piece result (one from 0 to t0, the second from t0 to 1000 t0 = 0.2 # this

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

2010-03-16 Thread Mike Hansen
On Tue, Mar 16, 2010 at 12:38 PM, Alec Mihailovs wrote: > Will it work as matrix(5,f) as well, or only as matrix(5,5,f) ? It now works with both. --Mike -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...

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

2010-03-16 Thread Alec Mihailovs
On Mar 16, 2:32 am, Mike Hansen wrote: > On Mon, Mar 15, 2010 at 10:16 PM, Jason Grout > > wrote: > > Whoever takes care of this original issue gets to claim a 3-digit ticket! > > >http://trac.sagemath.org/sage_trac/ticket/261 > > Patch up for review. > > --Mike Will it work as matrix(5,f) as we

[sage-support] Re: Running SAGE on Scientific Linux: Possible?

2010-03-16 Thread Adam Webb
On Mar 16, 3:06 pm, "rvaug...@gmail.com" wrote: > When I try to make sage-4.3.3, I get: > > "There is no spkg-install script, no setup.py, and no configure > script, > so I do not know how to install /usr/share/sage-4.3.3/spkg/standard/ > gd-2.0.35.p4.spkg. > make[1]: *** [installed/gd-2.0.35.p4

Re: [sage-support] Running SAGE on Scientific Linux: Possible?

2010-03-16 Thread Mike Hansen
n Mon, Mar 15, 2010 at 10:30 AM, rvaug...@gmail.com wrote: > Anybody running SAGE on Scientific Linux? > If so, how?  What version SAGE, what version Scientific Linux? > > I've tried several versions on SAGE on SciLinux 4.8 & 5.4, > and in no case did the 'make' succeed. What did you download? T

[sage-support] Re: Change of behaviour of mwrank in SAGE 4.3.3

2010-03-16 Thread John Cremona
Let me explain (as the author of mwrank).There was a bug in mwrank, found by James Wiegandt and Edray Goins, which meant that in some cases for curves with rational 2-torsion the computed upper bound on the rank was too high. (Technical explanation: the second descent homogensous spaces were

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

2010-03-16 Thread Jaap Spies
wxu...@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 this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage

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

2010-03-16 Thread wxuyec
Thank you very much! I will try this.regards,YC - 原文 - 发件人: Jason Grout 主 题: Re: 回复: [sage-support] Re: 3D plot in sage时 间: 2010年3月16日 03:36:36On 03/16/2010 02:24 AM, wxu...@sohu.com wrote:> Hi Jason and everyone,> > Thank you very much for your reply.> > Now I have a function or a set

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

2010-03-16 Thread Jason Grout
On 03/16/2010 02:24 AM, wxu...@sohu.com wrote: > Hi Jason and everyone, > > Thank you very much for your reply. > > Now I have a function or a set of data depending all the three > coordinates x, y, z. > In other words, there is a corresponding value at every point in 3 > dimensional space, whi

[sage-support] Re: Running SAGE on Scientific Linux: Possible?

2010-03-16 Thread rvaug...@gmail.com
When I try to make sage-4.3.3, I get: "There is no spkg-install script, no setup.py, and no configure script, so I do not know how to install /usr/share/sage-4.3.3/spkg/standard/ gd-2.0.35.p4.spkg. make[1]: *** [installed/gd-2.0.35.p4] Error 1 make[1]: Leaving directory `/usr/share/sage-4.3.3/spkg

[sage-support] Change of behaviour of mwrank in SAGE 4.3.3

2010-03-16 Thread Julian
Dear group, I have noticed a change in behaviour of mwrank when called from SAGE 4.3.3 to compute Selmer ranks. I am using Mac OSX 10.6.2, Power PC. The SAGE folder is in the directory Applications. The command u003429:~ julianaguirre$ /Applications/sage/sage -mwrank -v0 -s gives Program mwrank

Re: [sage-support] Plotting within an interval.

2010-03-16 Thread David Joyner
Use Piecewise. Type Piecewise? For examples. On Tuesday, March 16, 2010, Jose Guzman wrote: > Hi everybody, > > i was wondering, which is the best method to plot a conditional function > within an interval. For example, a function whose values are: > > 0 if t f(t) if t>t0 > > where f(t) is a si

[sage-support] Plotting within an interval.

2010-03-16 Thread Jose Guzman
Hi everybody, i was wondering, which is the best method to plot a conditional function within an interval. For example, a function whose values are: 0 if tt0 where f(t) is a simple monoexponential decay that starts at t0. I tried the following in Sage: t = var('t') def f(t,t0): if tht

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

2010-03-16 Thread wxuyec
Hi Jason and everyone,Thank you very much for your reply.Now I have a function or a set of data depending all the three coordinates x, y, z.In other words, there is a corresponding value at every point in 3 dimensional space, which maybevaries from -1 to 1. I want use color to represent the valu

Re: [sage-support] Transfer notebooks from windows to ubuntu and/or importing downloaded notebooks

2010-03-16 Thread Tim Joseph Dumol
On Tue, Mar 16, 2010 at 8:34 AM, zsharon wrote: > Hi, > > I've switched to ubuntu, so I want to move my notebook files from > windows to linux. > > In windows, I have sage-linux installed through vmware (or is it > easybox? I assume that doesn't matter, but I can find out which it > is. I just