× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
5
o
5
4
m
4
b
4
x
4
a
4
l
4
t
4
S
4
m
3
s
3
New Topic  
Julaaro Julaaro
wrote...
11 years ago
Whilst creating a Java program I began to question the inbuilt functions that it provides.  One however wasn't present.  This was differentiation.  I began to question how a computer would go about computing differentiation.. any answers?
Read 327 times
3 Replies

Related Topics

Replies
wrote...
11 years ago
computing the derivative of a function, whereby the answer is a function, would require some complex inbuilt table for the program to follow and would be very difficult. Getting the computer to approximate the slope of a tangent line at a specific point, however, could be made arbitrarily close approximation by letting the computer take arbitrarily small values of h for [f(x+h)-f(x)]/h. You would get strange results, however, when 'differentiating' at points where the function has no defined derivative. this would require another table to correct, but a smaller one.
wrote...
11 years ago
To do it numerically, a variety of schema can be amployed, though simple finite differences is most common.

Closed form differentiation is larely done by computers much like we to.  They parse the problem up, perform the tasks, and try to reduce it to a compact form.  I doubt anything in Java is very sophisticated, nothing like Mathematica.  If it was to be added, it would n't be for something potentially computation intensive like closed form differentiation or integration.
wrote...
11 years ago
Symbolic differentiation is comparatively easy, and polynomial differentiation is often assigned as a programming project in a second-term programming class.  Full-blown differentiation is of course more challenging, but since the algorithm is clear cut (remember, every first semester calculus student learns to differentiate, in principle, every elementary function), it is not that hard to implement.  The hard part is actually "simplifying" answers that get spewed out.  By contrast, symbolic integration is much harder.
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1008 People Browsing
Related Images
  
 278
  
 219
  
 349
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 308