Thread: Expression Manipulator v0.6

  1. #1
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490

    Expression Manipulator v0.6

    It's been a long time since the last update, so I figure I'll post this one before doing my next big change.

    minor changes:
    - bugs fixed in handling functions
    - A template class Set was created to unite a set of Variables and a set of Expressions (in theory, anyway)

    major changes:
    - The console is much better than it was in the beginning. It will keep asking for an equation until you tell it to quit. Some commands:
    • #quit() -- hmm... wonder what this does...
    • #definefunc(function_name,expression of function,parameter1,parameter2,...) -- this defines a function
      an example:
      Code:
      :> #definefunc(h,f(x),x)
      :> f(3)
      f(3)=f(3)
      :> h(3)
      f(3)=f(3)
      :> h(2)
      f(2)=f(2)
      :> #definefunc(f,3+x,x)
      :> h(2)
      5=5
      :> _
    • #help() -- some hints on using it

    - Along with the console change, a history function was added:
    ans(# of lines back, parameter number)
    ie:
    Code:
    :> 3=5
    3=5
    :> ans(0,1)
    5
    - To speed up typing, some shortcuts were added:
    Code:
    :> 3 = 5
    3=5
    :> +3
    6=8
    :> /x
    6*x^-1=8*x^-1
    (Subtracting like this isn't supported because it would be confused with the minus sign. Instead, put a plus before it:
    ie: +-4x instead of -4x

    - Exceptions added and standardized

    Most of the older functions are listed in the Documentation file.

    The executable might be posted later today, if it fits the size limit here.
    Last edited by ygfperson; 07-01-2003 at 11:28 PM.

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    forgot to attach the source:

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with making a Math Expression DLL
    By MindWorX in forum C Programming
    Replies: 19
    Last Post: 07-19-2007, 11:37 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. recursion error
    By cchallenged in forum C Programming
    Replies: 2
    Last Post: 12-18-2006, 09:15 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Expression Evaluator Contest
    By Stack Overflow in forum Contests Board
    Replies: 20
    Last Post: 03-29-2005, 10:34 AM