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

This is a discussion on Expression Manipulator v0.4 (bugs fixed, derivatives work with trig funcs) within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Current functions built-in: sin cos tan cot (cotangent) sec (secant) csc (cosecant) ln() (log of base 2.71...) log (log of ...

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

    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!
    Attached Files Attached Files

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

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, 09:18 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 11: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, 11:15 PM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21