使用VB.NET绘制sin(x)函数 [英] Drawing sin(x) function using VB.NET
本文介绍了使用VB.NET绘制sin(x)函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想编写一个程序,在控制台应用程序中显示sin(x)函数的图形,其中0< = x< = 180,任何人都可以帮忙? plz
I would like to write a program that will display the graph for sin (x) function where 0 <= x <= 180 in a console application, anybody can help?? plz
推荐答案
尝试gnuplot:
Try gnuplot:
gnuplot> set terminal dumb
Terminal type set to ''dumb''
Options are ''feed 79 24''
gnuplot> plot sin(x)
1 ++----------------**---------------+----**-----------+--------**-----++
+ *+ * + * * + sin(x) ****** +
0.8 ++ * * * * * * ++
| * * * * * * |
0.6 ++ * * * * * * ++
* * * * * * * |
0.4 +* * * * * * * ++
|* * * * * * * |
0.2 +* * * * * * * ++
| * * * * * * * |
0 ++* * * * * * *++
| * * * * * * *|
-0.2 ++ * * * * * * *+
| * * * * * * *|
-0.4 ++ * * * * * * *+
| * * * * * * *
-0.6 ++ * * * * * * ++
| * * * * * * |
-0.8 ++ * * * * * * ++
+ * * + * * + * * +
-1 ++-----**---------+----------**----+---------------**+---------------++
-10 -5 0 5 10
或这样:
http://wdas.github.com/SeExpr/doxygen/mytut.html [ ^ ]
or this:
http://wdas.github.com/SeExpr/doxygen/mytut.html[^]
./asciiGraph "val=.5*PI*x;7*sin(val)/val"
|
|
###
# |#
## |##
# | #
## | ##
# | #
## | ##
# | #
# | ##
#### # | # ####
#######-----##--###-----#-----|----##-----##--###-----######
###### ## # | # # ######
## ## | ## ##
### | ###
|
|
|
我知道你说过VB.可以,但是我们不能用勺子喂你:)
I know you said VB. Net, but we can''t spoon-feed you :)
这篇关于使用VB.NET绘制sin(x)函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文