文件名称:DrawCosCurve
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.88kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在屏幕上用‘*‘横向显示0~360度的cos(x)曲线。此题关键在于余弦曲
线在0~360度的范围内,一行要显示两个点。考虑到cos的对称性,将屏幕的行方向定义为x,列方向定义为y,则0~180度的图形是左右对称的。若将图形的总宽度定义为62列,计算出x行0~180度时y点的坐标m,那么在同一行与之对称的180~360度的y点的坐标就应为62-m。程序中利用反余弦函数acos计算坐标(x,y)的对应关系。
-On the screen using the ' *' horizontal display 0 to 360 degrees cos (x) curve. The problem lies in the cosine curve in the range of 0 to 360 degrees, the line to show two points. Taking into account the symmetry of cos, the direction of the screen line is defined as x, the column direction is defined as y, then 0 ~ 180 degree graph is symmetrical. If the total width of the graph is defined as 62 to calculate the x-line from 0 to 180 degrees y coordinates of the point m, then the same line with it' s 180 to 360 degree symmetrical y-coordinates of points should be for the 62-m. The program calculations using inverse cosine function acos coordinates (x, y) of the correspondence.
线在0~360度的范围内,一行要显示两个点。考虑到cos的对称性,将屏幕的行方向定义为x,列方向定义为y,则0~180度的图形是左右对称的。若将图形的总宽度定义为62列,计算出x行0~180度时y点的坐标m,那么在同一行与之对称的180~360度的y点的坐标就应为62-m。程序中利用反余弦函数acos计算坐标(x,y)的对应关系。
-On the screen using the ' *' horizontal display 0 to 360 degrees cos (x) curve. The problem lies in the cosine curve in the range of 0 to 360 degrees, the line to show two points. Taking into account the symmetry of cos, the direction of the screen line is defined as x, the column direction is defined as y, then 0 ~ 180 degree graph is symmetrical. If the total width of the graph is defined as 62 to calculate the x-line from 0 to 180 degrees y coordinates of the point m, then the same line with it' s 180 to 360 degree symmetrical y-coordinates of points should be for the 62-m. The program calculations using inverse cosine function acos coordinates (x, y) of the correspondence.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DrawCosCurve/CosCurve.cpp
DrawCosCurve/CosCurve.dsp
DrawCosCurve/CosCurve.dsw
DrawCosCurve/CosCurve.h
DrawCosCurve/Main.cpp
DrawCosCurve
DrawCosCurve/CosCurve.dsp
DrawCosCurve/CosCurve.dsw
DrawCosCurve/CosCurve.h
DrawCosCurve/Main.cpp
DrawCosCurve
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.