能計算數學函數的計算器 這個計算器可用 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