在C#中需要帮助 [英] Need help in C#
本文介绍了在C#中需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助我如何绘制数学函数
Please help me on how to draw a mathmatical function y=aX^2+bX+cX+d in C# where I can set my own values for a, b or d. Help me with the codes.
推荐答案
float calculate(float a, float b, float c, float d)
{
float X = 2.0f; //some value
return ((a * X) ^ 2 + (b *X) + (c * X) + d);
}
上面的代码可以解决您的问题吗?
Is it something like the above code solves your problem?
这篇关于在C#中需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文