Hi,

I'm trying to do something that I think should be simple based on my
experience with Mathematica, but I have been unsuccessful doing it in
Sage.  I've searched around quite a bit, but I can't find any
examples.  Basically, I'm defining a function that isn't a nice closed
form function (below it's called g).  In this case it is defined as a
Laplace integral.  I just want Sage to evaluate it (approximate it) at
particular values that I stick in.

var('x,s')

f(x) = 1/(x+1)^2

g(s) = f.laplace(x,s)
g
      s |--> laplace(1/(x + 1)^2, x, s)

# this is ok, but I want a numerical approximation
g(10)
       laplace(1/(x + 1)^2, x, 10)

# let me try to get the numerical approximation
g(10).n()
TypeError: unable to coerce '?%laplace(1/(x+1)^2,x,10)' to float

How can I get around this?  Or am I just thinking about all this the
wrong way?

Thank you in advance!

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to