开发者

How to create a mathematical curve (probably just an image) in C/C++

开发者 https://www.devze.com 2023-01-23 05:41 出处:网络
Pretty much the title explains what I try to achieve. Having a set 开发者_如何学编程of points in two dimensions, I want to create somehow the curve tha passes from all these points.

Pretty much the title explains what I try to achieve.

Having a set 开发者_如何学编程of points in two dimensions, I want to create somehow the curve tha passes from all these points. Whether it will be a graphical window with the mathematical curve or just a jpg produced, is of no importance.

Any help? Thx!


First of all, please refrain from tagging questions with C and C++, or using the term C/C++. C and C++ are two distinct, very different languages.

That being said, it seems you are looking for a way to plot data. There are different libraries allowing you to do that, among those are:

http://codecutter.org/tools/koolplot/

http://www.gnu.org/software/plotutils/

http://www.mps.mpg.de/dislin/

You can integrate those libraries into your application to produce plots of your data points. There are of course different, additional libraries, but these are the ones that came to my mind first.

0

精彩评论

暂无评论...
验证码 换一张
取 消