Help me code a mathematical formula in C

Status
Not open for further replies.

Mejdi_tn

Junior Member level 3
Joined
Oct 20, 2007
Messages
28
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,283
Visit site
Activity points
1,473
Am starting programming C and VHDL; I want to program mathematical formula like for implantation on FPGA:
Ni= (Nmax/di²)*(k*di),
With Ni and di are given bay Matrices 5*5
 

Re: hi

in C:
its very easy;declare datatype of ur variables and program it..........
 

hi

MEjdi,
J'ai oublier les commendes en C mi s je te donne l'algothme.

1- declare tes variable N et d des tableau de dimention 5. N matrice 5*5 contenant les ni il en est de me pour d.
2- Et fait une boucle
for i = 0 jusqu'a 5
for j= 0 jusqu'a 5
Ni=(Nmax/di²)*(k*di),

Rq: le parcours des variable depends des indices.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…