更新时间:2023-11-23 23:14:04
我搜索了
我在Visual C#2010 WinForms应用程序中如何实现这个功能? code> windows 的数学函数图库并找到:,您可以尝试使用以下源代码:
您必须检查许可证。
我没有尝试任何这些,顺便。
I am working on a scientific calculator in C#. I have the parsing engine and such, now I would like to add a graph so the user can plot a line. Is there any kind of control that will let me input a function and it will graph a line in the chart? I'm not talking about plotting individual points by the way.
Take this linear equation in slope-intercept form for instance:
f(x) = 2x + 7
The main goal is to allow the user to write 2x + 7
in a textbox, and then it will graph the line. It would be preferable if custom functions could be used other than just linear functions, such as:
((x - 8) * 4^2)/(7.136 + x)
But it's not a requirement. Is there a third-party control for this? If not could someone give me general help on how I would create such a control?
I have downloaded a program that graphs functions like this:
Can anyone help me on how I can achieve this functionality in my Visual C# 2010 WinForms application?
I searched for mathematical function plot library for windows
and found this:
and you can try to use the source code of:
You'll have to check the licenses. I didn't try any of these, by the way.