能计算数学函数的计算器 这个计算器可用 set 命令自定义变量,也可以用 view 今天查看变量的值,在程序里有一个设置小数显示数度的全局变量 prec 可以用 set 对它重新赋值,值的范围是 0 - 100 的整数,默认是 6 ,将 sin arcsin tan ln 等数学函数转换成内部表示,以便于将之与一般的运算符统一处理。程序还对小数和整数加以了区别,增加了求余去处符 ‘\’、百分符‘%’。
上传时间: 2016-12-15
上传用户:ikemada
此为DDS AD9851之应用原文档,来源为Analog Device,主要可控制多颗9851,其应用为产生两正交之sin波.
上传时间: 2014-01-16
上传用户:zycidjl
在matlab中添加dspbuilder用于实现dsp的算法,本案例是通过建模对sin函数进行调制后仿真所得。
标签: dspbuilder matlab dsp 算法
上传时间: 2017-01-10
上传用户:CSUSheep
一个很好的学习粒子群算法的例子。(刘康C++版本) 程序介绍: 模拟一群鸟捕食的情景,从而达到优化目标函数的目的,这就是粒子群算法!起初在可行的空间中随机的产生一群粒子,然后让每个粒子开始在虚拟的空间中向四面八方飞翔,并且每个粒子都记下他们飞过的适应值(也就是目标优化函数)最高的点,而且整个粒子群有一个最高适应值个体,这样,粒子在飞翔的时候尽量朝向自己曾飞过的最好的点和集体的最好的点。最后达到收敛到近似最优点的目的。 备注:目标优化函数程序中已经内定了,f6 ={0.5-[sin(sqrt(x2+y2)2-0.5]}/(1+0.001*(x2+y2))2 用户可以通过编辑pso.cpp文件自定义优化函数。另外屏幕输出的是最后所求得的最优值和相应的最优点。
上传时间: 2014-11-21
上传用户:天涯
求解三角函数,使用数学原理是泰勒级数,已给出sin求法,其余读者可自行补充。
标签: 三角函数
上传时间: 2013-11-27
上传用户:阳光少年2016
verilog编程开发的cordic例程,计算SIN,COS功能与计算幅值角度功能可设定,运算宽度可设定,并有完善的TESTBENCH。
上传时间: 2014-01-01
上传用户:Breathe0125
cordic methods describe essentially the same algorithm that with suitably chosen inputs can be used to calculate a whole range of scientific functions including sin, cos, tan, arctan, arcsin, arccos, sinh, cosh, tanh, arctanh, log, exp, square root and even multiply and divide. the method dates back to volder [1959], and due to its versatility and compactness, it made possible the microcoding of the hp35 pocket scientific calculator in 1972. here is some code to illustrate the techniques. ive split the methods into three parts linear, circular and hyperbolic. in the hp35 microcode these would be unified into one function (for space reasons). because the linear mode can perform multiply and divide, you only need add/subtract and shift to complete the implementation. you can select in the code whether to do the multiples and divides also by cordic means. other multiplies and divides are all powers of 2 (these dont count). to eliminate these too, would involve ieee hackery.
标签: essentially algorithm describe suitably
上传时间: 2017-03-02
上传用户:litianchu
钟表显示一.基本设计要求 1 在屏幕上显示一个适当大小的圆形,再圆形道上均匀的分配着60个点,代表1秒—60秒的位置,凡是5倍的点应当比其他的大。 2 以圆中心为轴,画一条斜线代表秒针,采用定时中断方式,每过1秒钟,秒针移动一个位置。 3 定时源可以使用试验箱上的8253。 4 按“ESC”之后,结束演示。 二. 扩展要求 屏幕上显示时、分、秒针,没有使用中断定时方式,采用的是系统实时时间。 三. 课设基本思想 屏幕设置为图形方式,采用模块化编程,主模块显示界面信息,每个子模块负责一个功能,然后通过模块调用来实现。 首先调用画圆及画线子模块显示圆形表盘,及时、分、秒针,然后调用秒针移动子模块式电子钟能够运行。 在秒针移动子模块中,首先通过cos和sin两个功能模块来确定秒针移动的度数,其次分别对秒、分、时进行擦除重写操作,再分别对表盘及圆心进行刷新,这样就实现了时、分、秒针的动态变化。 四. 程序流程图
标签: 屏幕
上传时间: 2013-12-16
上传用户:duoshen1989
this program is very interesting for to calculate with simple operation and advance operation. simple operation such us +,-,:,x and advance operation such as calculate sin,cos and tan implementation
标签: operation interesting calculate program
上传时间: 2013-12-18
上传用户:熊少锋
vb2005编写的计算器。 直接输入字符串,如: 4+pi^2+sin(3*cos(2)*e^2)+2.3E13 常数:pi,e 科学计数表示:1E4(1*10^4) 函数支持常用函数:sin,cos,tan,atan,asin...
上传时间: 2017-04-20
上传用户:weixiao99