Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a method in Java that can do integration?

I am writing a program in java that models a carnot engine and I want to calculate the work done and I need to use integration. I have been looking around on google and haven't found quite what I am looking for, have any suggestions?

like image 390
Ben Fossen Avatar asked Aug 04 '26 03:08

Ben Fossen


2 Answers

Apache Commons Math contains ready implementations for integration and much more.

Java Number Cruncher is a good book if you want to do it yourself.

like image 146
Joonas Pulakka Avatar answered Aug 05 '26 16:08

Joonas Pulakka


You have to use an external library, like this one or this other one. You cannot do that with just native methods (well, unless you implement the integration algorithm yourself like the others answers suggest, which I think it's not what you want - otherwise you weren't asking here :-)

like image 23
Davide Avatar answered Aug 05 '26 15:08

Davide



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!