Kirk Smith wrote:
> 
> On 23 Aug 00, at 19:39, crzhang wrote:
> 
> > Hi all:
> > Now i have a string "3*2*sin2+2*1", i want to get this string's mathematic result, 
>but i don't know how to do.Can you help me?
> > Best Regards

This is off topic, but if you do:

perl -e 'print eval("3*2*sin(2)+2*1")'

You get 7.45578456095409 (dunno if it's right)

Regards, Stuart
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to