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

2010-03-16 Thread Mike Hansen
On Mon, Mar 15, 2010 at 10:16 PM, Jason Grout jason-s...@creativetrax.com 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 -- To post to this group, send email to

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

[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 f(t) if tt0 where f(t) is a simple monoexponential decay that starts at t0. I tried the following in Sage: t = var('t') def

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 n...@neurohost.org 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 tt0 f(t) if tt0 where

[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

[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

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, which

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:gt; Hi Jason and everyone,gt; gt; Thank you very much for your reply.gt; gt; Now I have a

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-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] Running SAGE on Scientific Linux: Possible?

2010-03-16 Thread Mike Hansen
n Mon, Mar 15, 2010 at 10:30 AM, rvaug...@gmail.com 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

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

2010-03-16 Thread Adam Webb
On Mar 16, 3:06 pm, rvaug...@gmail.com 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]: ***

[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 mhan...@gmail.com wrote: On Mon, Mar 15, 2010 at 10:16 PM, Jason Grout jason-s...@creativetrax.com 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

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 alec.mihail...@gmail.com 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

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 #

[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 mhan...@gmail.com wrote: On Tue, Mar 16, 2010 at 12:38 PM, Alec Mihailovs alec.mihail...@gmail.com 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

[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

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

[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

[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 john.crem...@gmail.com 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

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

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 alec.mihail...@gmail.com 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()

[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 stdin, line 1, in module File _sage_input_60.py, line 5, in module vector(array([_sage_const_1 ,_sage_const_2 ])) File , line 1, in module

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

[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 dmitrey.kros...@scipy.org wrote: hi all, is it