Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

Pages: **1**

Is any open documentation (like from dspace, wikipedia or whatever, or even bibliography) could help me on this task? or even anyone(s) from this forum can explain how each situation is used in a code notation?

really thanks, for me and all people knows the importance of this help...

Here is an example from formulas i got from an ieee paper about using fractals for compressing pictures

Ieee papers normally talk about algorithms, but only formulas like this are shown - for me who are not comfrotable with math notation is very complicated to try to understand it:

are all simple to translate to code notation?

thanks! :-)

an example: standard deviation formula converted to algorithm

the formula is:

D=sqrt{sum from{i=1}to{N}(x_{i}-bar x)^{2}over{N-1}}

the algorithm in sdlBasic (http://sdlbasic.sf.net) is

```
'- standard deviation
setdisplay(512,256,32,1):paper(0xFFFFFF):ink(0x000000):pen(0x000000):cls
n=50
dim x[n]
while 0=0
prints("Standard Deviation"):prints("")
prints("OpenOffice formula format:")
prints("D=sqrt{sum from{i=1}to{N}(x_{i}-bar x)^{2}over{N-1}}"):prints("")
prints("getting random values..."):prints("")
for i=1 to n
x[i]=rnd(1000)
next
close #1
prints("running the formula..."):prints("")
av_x=0
for i=1 to n
av_x=av_x+x[i]
next
av_x=av_x/n
sum=0
for i=1 to n
sum=sum+(x[i]-av_x)^2
next
stp3=sum/(n-1)
d=sqr(stp3)
prints("standard deviation: "+str$(d)):prints("")
waitkey
cls
wend
```

my main interest is being able to convert formulas like from here: http://www.google.com/search?q=ieee+papers+pdf&sourceid=mozilla-search&start=0&start=0 to algorithm

Pages: **1**