On Sep 16, 2009, at 2:23 PM, Dan wrote:
> I've been using sagenb for a few weeks now and have the hang of most
> of the easy things. Is there a way to generate tables of a user
> defined function? I'm still switching over to Excel or the TI
> calculator to do that. TI table function lets you punch in table
> values and calculates values in table.
>
> Thanks,
> -d
>
> x = var('x')
> plot ((e^(2*x) - 1)/(x),(-.75,.75))
>
> Want to see is table showing how f(x) as x->0 approaches e
>
> .1
> .01
> .001
> .0001
> -.1
> -.01
> -.001
> -.0001
sage: f(x) = (e^(2*x)-1)/x
sage: for t in [1..10]:
print 10^-t, f(10^-t).n()
1/10 2.21402758160170
1/100 2.02013400267558
1/1000 2.00200133400028
1/10000 2.00020001333542
1/100000 2.00002000012319
1/1000000 2.00000200001523
1/10000000 2.00000020116568
1/100000000 2.00000001490116
1/1000000000 2.00000000000000
1/10000000000 2.00000000000000
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---