编程功能抽屉 [英] programming function drawer

查看:126
本文介绍了编程功能抽屉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。我现在正在编写一个解决方程的数学程序。现在我想添加一个能力来绘制功能为1或2的功能。

任何人都可以指导我? ?

非常感谢!!

hi there .im now programming a mathematics program which solves the equation.now i want to add an ability to draw the functions with the power of 1 or 2.
anybody can guide me???
thanks a lot!!

推荐答案

这并不困难:

  • 计算一个二维点数组 {x,f(x)} ,其中 {x} 代表感兴趣的范围。
  • 将矩形(xmin,ymin,xmax,ymax)缩放到输出矩形。
  • 可能绘制缩放点连接它们(各种选项,例如线性或使用样条线)。
It is not difficult:
  • compute a bidimensional array of points {x, f(x)} with {x} representative of the range of interest.
  • Scale the rectangle (xmin, ymin, xmax, ymax) to your output rectangle.
  • Draw the scaled point possibly connecting them (the are various options, for instance linearly or using splines).


您可以在CP上使用这篇文章来帮助您如何编写代码:用于图形绘制的简单C#库 [ ^ ]
You may be able to use this article here on CP to help you with how to code this: A simple C# library for graph plotting[^]


这篇关于编程功能抽屉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆