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

RE: [FWP] Math::Expression



Chip Turner wrote:
> 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 :)

So do I, but this is still way cool...

Jeff, in the interests of increasing the "Fun With Perl" we
can have with this module, do you mind if we discuss the 
source?

It's at 
http://www.crusoe.net/~jeffp/perl/modules/Math/Expression/Expression.pm
on Jeff's website.
-- 
Mike

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