• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    *Expert Elite*
    Posts: 848
    Registered: ‎08-16-2007

    Re: To interpret mathematical formulas

    05-02-2012 08:03 AM in reply to: Lupo76

    You hardly need to reinvent the wheel by fancy string parsing. Since AutoLISP was originally built, there has been a built-in calculator for this type of stuff.  It is arx based and must be arxloaded or automatically loaded by using the cal command.

     

    (cal "(3+5)*2")

    16

     

     

    It also has lots of really useful unique functions and keywords that it supports.

    Please use plain text.