[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Math::Expression



Jeff Pinyan <jeffp@crusoe.net> writes:

> Interested in seeing the power of a new Perl module?
> 
>   http://www.crusoe.net/~jeffp/tmp/math-exp-test.cgi
> 
> It can take the derivative of ANY arbitrary expression.

Some failures/oddities:

Original expression: (abs(x))
** ARRAY(0x210aec) x **
Resulting value: (abs(x)) / x 

x(x) bombs out completely

Original expression: (x / (x - x))
** ARRAY(0xd04d4) ARRAY(0xcbcf8) **
Resulting value: (x - x) / ((x - x)**2) 

Original expression: x**(1 / 3)
** 0 9 **
Resulting value: (1 / 3) * (x**853203) 

I still prefer mathematica :)

Chip

-- 
Chip Turner                   chip@ZFx.com
                              Programmer, ZFx, Inc.  www.zfx.com
                              PGP key available at wwwkeys.us.pgp.net

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe