如何在 C/C++ 中创建数学曲线(可能只是图像)
标题几乎解释了我试图实现的目标。
拥有一组二维点,我想以某种方式创建从所有这些点经过的曲线。 无论它是带有数学曲线的图形窗口还是只是生成的 jpg,都不重要。
有什么帮助吗?谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,请不要用C和C++来标记问题,或者使用术语C/C++。 C 和 C++ 是两种截然不同的语言。
话虽如此,您似乎正在寻找一种绘制数据的方法。有不同的库允许您执行此操作,其中包括:
http://codecutter.org/tools/koolplot/
http://www.gnu.org/software/plotutils/
http://www.mps.mpg.de/dislin/
您可以将这些库集成到您的应用程序中生成数据点图。当然还有不同的附加库,但这些是我首先想到的。
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.