-
Verilog HDL: Magnitude
For a vector (a,b), the magnitude representation is the following:
A common approach to implementing these arithmetic functions is to use the Coordinate Rotation Digital Computer (CORDIC) algorithm. The CORDIC algorithm calculates the trigonometric functions of sine, cosine, magnitude, and phase using an iterative process. It is made up of a series of micro-rotations of the vector by a set of predetermined constants, which are powers of two. Using binary arithmetic, this algorithm essentially replaces multipliers with shift and add operations. In a Stratix™ device, it is possible to calculate some of these arithmetic functions directly, without having to implement the CORDIC algorithm.
標簽:
representation
Magnitude
the
magnitude
上傳時間:
2013-12-24
上傳用戶:金宜
-
設(shè)B是一個n×n棋盤,n=2k,(k=1,2,3,…)。用分治法設(shè)計一個算法,使得:用若干個L型條塊可以覆蓋住B的除一個特殊方格外的所有方格。其中,一個L型條塊可以覆蓋3個方格。且任意兩個L型條塊不能重疊覆蓋棋盤
標簽:
上傳時間:
2013-12-16
上傳用戶:腳趾頭
-
design LP,HP,B S digital Butterworth and Chebyshev
filter. All array has been specified internally,so user only need to
input f1,f2,f3,f4,fs(in hz), alpha1,alpha2(in db) and iband (to specify
the type of to design). This program output hk(z)=bk(z)/ak(z),k=1,2,...,
ksection and the freq.
標簽:
Butterworth
internally
Chebyshev
specified
上傳時間:
2015-11-08
上傳用戶:253189838
-
About:
hamsterdb is a database engine written in ANSI C. It supports a B+Tree index structure, uses memory mapped I/O (if available), supports cursors, and can create in-memory databases.
Release focus: Major feature enhancements
Changes:
This release comes with many changes and new features. It can manage multiple databases in one file. A new flag (HAM_LOCK_EXCLUSIVE) places an exclusive lock on the file. hamsterdb was ported to Windows CE, and the Solution file for Visual Studio 2005 now supports builds for x64. Several minor bugs were fixed, performance was improved, and small API changes occurred. Pre-built libraries for Windows (32-bit and 64-bit) are available for download.
Author:
cruppstahl
標簽:
C.
hamsterdb
structure
database
上傳時間:
2013-12-11
上傳用戶:LouieWu
-
編寫一個用SOR法解方程組Ax=b的計算機程序,其中
要求程序中不存系數(shù)A,分別對不同的階數(shù)(例如n=15,80)取w=1.7,1.8,1.9,進行迭代,記錄近似解 達到 時所用迭代次數(shù)k,觀察松弛因子對收斂速度的影響。
標簽:
SOR
Ax
編寫
方程
上傳時間:
2013-12-25
上傳用戶:wcl168881111111
-
A* sudo sudo/*
B* adduser script adduser
C* rmuser script rmuser
E* tout tout/*
F* dumdum dumdum
G* lostfile lostfile
H* Mkfl.localsys Makefile.localsys
I* spacegripe spacegripe
J* sendmail.cf sendmail.cf
N* remote remote.c
O* distributed conrol distrib/*
P* hosts and name server makerevhosts
Q* xargs xargs/*
標簽:
adduser
script
rmuser
sudo
上傳時間:
2016-03-29
上傳用戶:gxrui1991
-
對PL0原編譯器進行了以下的擴充:1.增加以下保留字else(elsesym), for(forsym),to(tosym),downto(downtosym),return(returnsym),[(lmparen),](rmparen)
2.增加了以下的運算符:+=(eplus),-=(eminus),++(dplus),--(dminus)
取址運算符&(radsym),指向運算符@(padsym)
3.修改單詞:修改不等號#為<>
4.擴充語句:(1)增加了else子句
(2)增加了for語句
5.增加運算:(1).++運算 (2).--運算;(3).+=運算 (4).-=運算;(5).&取址運算;
(6).@指向運算;
6.增加類型:(1).增加多維數(shù)組a[i1][i2][i3]……[i(n-1)][i(n-2)][in] (2).增加指針類型(任何變量都能存放指針,但不支持指針的指針,如b:=@@a應該改寫為c:=@a,b:=@c)
7.將過程procedure擴展為函數(shù):(1).允許定義過程時在其后加參數(shù)(var a, var b,……..,var n) (2)允許通過指針向函數(shù)形式參數(shù)傳地址;(3)允許返回值;可以用 a:=p(a,b,c….,n) 返回
標簽:
downtosym
returnsym
elsesym
downto
上傳時間:
2016-07-02
上傳用戶:saharawalker
-
5.22④ 假設(shè)系數(shù)矩陣A和B均以三元組表作為存儲結(jié)構(gòu)。
試寫出滿足以下條件的矩陣相加的算法:假設(shè)三元組表A
的空間足夠大,將矩陣B加到矩陣A上,不增加A、B之外
的附加空間,你的算法能否達到O(m+n)的時間復雜度?其
中m和n分別為A、B矩陣中非零元的數(shù)目。
標簽:
5.22
矩陣
三元
系數(shù)
上傳時間:
2013-12-13
上傳用戶:coeus
-
3.畫橢圓ellipse
4.利用ellipse and rectangle 畫圖
5.一個最優(yōu)美的圖案
6.輸入3個數(shù)a,b,c,按大小順序輸出
:輸入數(shù)組,最大的與第一個元素交換,最小的與最后一個元素交換,輸出數(shù)組。
7.有n個整數(shù),使其前面各數(shù)順序向后移m個位置,最后m個數(shù)變成最前面的m個數(shù)
標簽:
ellipse
rectangle
and
橢圓
上傳時間:
2016-11-16
上傳用戶:royzhangsz
-
溫度華氏轉(zhuǎn)變攝氏
#include <stdio.h>
#include <stdlib.h>
enum x {A,B,C,D,E}
int main(void)
{
int a=73,b=85,c=66
{
if (a>=90)
printf("a=A等級!!\n")
else if (a>=80)
printf("73分=B等級!!\n")
else if (a>=70)
printf("73分=C等級!!\n")
else if (a>=60)
printf("73分=D等級!!\n")
else if (a<60)
printf("73分=E等級!!\n")
}
{
if (b>=90)
printf("b=A等級!!\n")
else if (b>=80)
printf("85分=B等級!!\n")
else if (b>=70)
printf("85分=C等級!!\n")
else if (b>=60)
printf("85分=D等級!!\n")
else if (b<60)
printf("85分=E等級!!\n")
}
{
if (c>=90)
printf("c=A等級!!\n")
else if (c>=80)
printf("66分=B等級!!\n")
else if (c>=70)
printf("66分=C等級!!\n")
else if (c>=60)
printf("66分=D等級!!\n")
else if (c<60)
printf("66分=E等級!!\n")
}
system("pause")
return 0
}
標簽:
include
stdlib
stdio
gt
上傳時間:
2014-11-10
上傳用戶:wpwpwlxwlx