Calculation of derivatives in Java

Asked

Viewed 374 times

1

Hello, good day.

I am here asking for a light for a problem that I have, my teacher of programming asked us to make a code that calculates the derivative of a function in java, but I am without a north to start the code, someone could give a light?

I have already researched and even seen some codes, but do not meet the requirements that the teacher asked. I thank from now on all.

  • Start by looking for numerical derivation methods.

  • I get it, thank you.

  • 2

    Do not misunderstand what I am going to say, but if you do not know how to start it is because it is not yet the right time to embark on this challenge. You have to go back and study the most initial parts of programming and then make sure you know how to derive math.

  • What I would do is read the given function, type x 2, and then implement the function bit by bit. Start by making the simplest derivatives yourself, then group them together, and progressively make it harder.

  • Usually when we think of derivation comes to mind the symbolic (which is what we do on paper) and Java does not have native packages for this. Maybe he can’t use Apis so symbolically deriving gets difficult. If you can use this see: https://github.com/yuemingl/SymJava

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.