Thread: Expression Manipulator v0.4 (bugs fixed, derivatives work with trig funcs)

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

    Expression Manipulator v0.4 (bugs fixed, derivatives work with trig funcs)

    Current functions built-in:
    • sin
    • cos
    • tan
    • cot (cotangent)
    • sec (secant)
    • csc (cosecant)
    • ln() (log of base 2.71...)
    • log (log of base 10)
    • sqrt (square root)
    • f() is defined at run-time as f(x) = x + y

    Later on I'll post an executable. But for now here are the features:
    • Extra factors and terms, even factors with powers of zero, are eliminated upon request, without problems anymore
    • derive() allows you to take the derivative of anything (except factors with variables in the exponent. that's still a work in progress)
    • when derived, trig functions work correctly. (ie: derive(sin(x)) == cos(x) * dx)
    • ln(x) and log(x) work, too. log assumes base 10.
    • simplifying is done in one function now.


    Things to come:
    • Factorization of single factors, then more complicated stuff like polynomials
    • Integration through implementation of integration rules
    • limits
    • deriving variable exponents
    • solving for a variable
    • better standards compliance so it'll compile in changes in more compilers
    • fractions and whole numbers
    • A more natural grammar to work with through overloading operators
    • implement text syntax for defining functions in run-time
    • better private/public seperation


    Please tell me what you think of it!

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    Here's the executable. (Run at command-prompt)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. Expression Manipulator v0.5 (bugs fixed, derivatives completed)
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 06-17-2003, 10:15 PM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM