Click to See Complete Forum and Search --> : Method that calculates the derivative of a function?
Mr. Mojo Risin
July 24th, 2008, 06:05 PM
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
dglienna
July 24th, 2008, 06:15 PM
If you search for it, you can find it. Only took a few seconds:
http://www.codeproject.com/KB/recipes/SolvingDifferentialEqns.aspx
Mr. Mojo Risin
July 24th, 2008, 06:48 PM
I did a lot of searching, but apparently I did not use the right keywords.
Thanks.
messycan
July 24th, 2008, 07:25 PM
Or you could use a TI-89 :P
Mr. Mojo Risin
July 24th, 2008, 07:36 PM
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.
DeepT
July 25th, 2008, 07:53 AM
Look at:
System.Math.Calculus namespace.
messycan
July 25th, 2008, 10:18 AM
Look at:
System.Math.Calculus namespace.
You are kidding, right? :p
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.