[sage-support] Inconsistent error

2009-04-17 Thread hpon
t recent call last): File "", line 1, in File "/home/sage/sagenb/sage_notebook/worksheets/hpon/17/code/2.py", line 12, in print eqn3.solve(sigma_1p, solution_dict=True) File "/home/sage/sage_install/sage-a/local/lib/python2.5/site- packages/SQLAlchemy-0.4.6-p

[sage-support] Re: Integrate piecewise linear function. -Data points

2009-04-09 Thread hpon
Thank you David! I didn't know one could form sums that concisely. Very happy about this. /hpon On 9 Apr, 16:09, David Joyner wrote: > Iif your points are (x_0,y_0), (x_1,y_1),...,(x_n,y_n), > don't you just take the sum of the (x_{i+1}-x_i)*(y_{y+1}-y_i)/2 ? > That'

[sage-support] Integrate piecewise linear function. -Data points

2009-04-09 Thread hpon
n the fashion I desire. It's bulky and does not work. y_0, s_0, y_1, s_1, y = var('y_0, s_0, y_1, s_1, y'); f (y_0, s_0, y_1, s_1, y)= (y - y_0) * ((s_1 - s_0) / (y_1 - y_0)) + s_0; sigma = Piecewise([[ (0, 1), f (0, 100, 1, 300) ]]); print f.trapezoid_integral_approximatio

[sage-support] Getting a numerical value

2009-03-13 Thread hpon
;and so on" Regards, hpon --~--~-~--~~~---~--~~ 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

[sage-support] Re: Substitution

2009-03-13 Thread hpon
Excellent. Thank you Alex! /hpon On 13 Mar, 09:16, Alex Ghitza wrote: > Hi, > > On Fri, Mar 13, 2009 at 7:09 PM, hpon wrote: > > > Hi, > > > What is the easiest way to make a mathematical substitution in Sage? > > > For example:  We have > > > eq

[sage-support] Substitution

2009-03-13 Thread hpon
Hi, What is the easiest way to make a mathematical substitution in Sage? For example: We have eqn1 = F == a + b and would like to use a = 0 and b = 3 to calculate F. Should I use "solve" and treat the problem like a system of equations, or is there a substitute-like command? Reg

[sage-support] Re: VMware Player. Read files from windows OS

2009-03-12 Thread hpon
-file is in a folder on the desktop, for instance? I greatly appreciate your help! /hpon On 11 Mar, 14:22, William Stein wrote: > On Wed, Mar 11, 2009 at 4:03 AM, hpon wrote: > > > Hi, > > > I'm running Sage from VMware Player (Sage command line) and I would > >

[sage-support] Re: VMware Player. Read files from windows OS

2009-03-12 Thread hpon
Hi William, Thanks for your reply! Something has turned up that I must attend to, so I cannot try your solution at the moment. But I'll get back to it shortly. /hpon On 11 Mar, 14:22, William Stein wrote: > On Wed, Mar 11, 2009 at 4:03 AM, hpon wrote: > > > Hi, > >

[sage-support] VMware Player. Read files from windows OS

2009-03-11 Thread hpon
Hi, I'm running Sage from VMware Player (Sage command line) and I would like to load a sage-file that I wrote in Windows XP. Is that possible? How is it done? Regards, hpon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroup

[sage-support] Re: Plot some function F(variable, constant)

2009-02-21 Thread hpon
n, mu), mu, 0, 0.1) #End /Peter On Feb 21, 4:11 pm, David Joyner wrote: > Can you take the function you are trying to plot, > reduce it to the simplest expression which will > reproduce the same error and post it? Can you > also include the OS and version of Sage? > > On

[sage-support] Re: Plot some function F(variable, constant)

2009-02-21 Thread hpon
is one way: > > sage: x,y = var("x,y") > sage: f = x^2+y^2 > sage: plot(f(x,3),x,-1,1) > > On Sat, Feb 21, 2009 at 9:22 AM, hpon wrote: > > > Hello, > > > I have created a function F = F(x, const).  I would like to create a > > 2D-plot of F in s

[sage-support] Plot some function F(variable, constant)

2009-02-21 Thread hpon
Hello, I have created a function F = F(x, const). I would like to create a 2D-plot of F in some range of x. What should the syntax look like? Regards, Peter --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe f

[sage-support] Re: Absolute SAGE fundamentals

2009-02-21 Thread hpon
tions. /Peter On Feb 21, 10:53 am, Jason Grout wrote: > hpon wrote: > > Hi, > > > I need some help getting started. > > > I'm running Sage in the terminal on a Linux system.  How do I use a > > proper editor; so that can save and edit my work? > > A lot of

[sage-support] Absolute SAGE fundamentals

2009-02-21 Thread hpon
Hi, I need some help getting started. I'm running Sage in the terminal on a Linux system. How do I use a proper editor; so that can save and edit my work? Regards, Peter --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To