Expression Manipulator v0.3 (differentiation)

This is a discussion on Expression Manipulator v0.3 (differentiation) within the A Brief History of Cprogramming.com forums, part of the Community Boards category; The only real difference is the fixing of a clear_extra() bug (and features), and the adding of a derive() function. ...

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

    Expression Manipulator v0.3 (differentiation)

    The only real difference is the fixing of a clear_extra() bug (and features), and the adding of a derive() function.

    clear_extra() removes excess terms containing a zero factor, and factors containing excessive ones.

    To take the derivative:
    "derive(3x)"

    For some reason, another extra term is attached to the result, and I can't simplify it, but it's still the correct one.

    Right now powers are assumed to be constants. Later on when I add the ability to take logs, I'll work with variable powers. Also later on will be simple substitutions such as sin'(x) = cos(x)
    Last edited by ygfperson; 06-01-2003 at 08:45 AM.

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    Here's the executable
    Attached Files Attached Files

  3. #3
    Funniest man in this seat minesweeper's Avatar
    Join Date
    Mar 2002
    Posts
    801
    The first one has nothing in it.

  4. #4
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    Whoops...
    Attached Files Attached Files

  5. #5
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    How many years of calculus do you have under yoru belt and what grade are you in (college or high school or pre K or whatever).

    Like I said before, this is genuinely a cool program and everyone that doesn't download it sucks.

  6. #6
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    He's a senior who has taken one year of Calc.


    Damn, it's pretty scary that i know that.

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-20-2007, 12:37 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03: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, 11:03 AM
  5. Expression Evaluator Contest
    By Stack Overflow in forum Contests Board
    Replies: 20
    Last Post: 03-29-2005, 10:34 AM

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