|
-
July 24th, 2008, 06:05 PM
#1
Method that calculates the derivative of a function?
I don't know a whole lot of C#, but I would like to learn more. I'm a Computer Science student with some experience in C++, Java, VB.net and some other languages. I'm taking Calc 1 and we are going over Newton's Method for find zeros of a function. I would like to write a program that will use Newton's Method to find the zero of an inputted funtion. I would like to have a nice GUI, so I picked C#, plus I want to write the program to gain some experience in C#. It would make my job a lot eaiser if there is some pre-built function that calculates the derivative of a function. If not, some sample code with an algorithm would be the next best thing.
thanks
-
July 24th, 2008, 06:15 PM
#2
Re: Method that calculates the derivative of a function?
If you search for it, you can find it. Only took a few seconds:
http://www.codeproject.com/KB/recipe...ntialEqns.aspx
-
July 24th, 2008, 06:48 PM
#3
Re: Method that calculates the derivative of a function?
I did a lot of searching, but apparently I did not use the right keywords.
Thanks.
-
July 24th, 2008, 07:25 PM
#4
Re: Method that calculates the derivative of a function?
Or you could use a TI-89 :P
If this post helps you out, please rate it!
-
July 24th, 2008, 07:36 PM
#5
Re: Method that calculates the derivative of a function?
 Originally Posted by messycan
Or you could use a TI-89 :P
yep.. got one of those Too bad I can't use them on exams 
I'm doing this for fun and to learn C# better. I might try to write my own function to find a derivative. That maybe hard though. I like a challenge though. I hate doing math, but when I use it in a computer program, it's fun.
-
July 25th, 2008, 07:53 AM
#6
Re: Method that calculates the derivative of a function?
Look at:
System.Math.Calculus namespace.
-
July 25th, 2008, 10:18 AM
#7
Re: Method that calculates the derivative of a function?
 Originally Posted by DeepT
Look at:
System.Math.Calculus namespace.
You are kidding, right?
If this post helps you out, please rate it!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|