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

You are not logged in.

#1 Re: Help Me ! » math notation to code notation » 2005-09-08 08:34:37

thanks!!! - btw, if possible,  the point is how can i get to know how can i convert these formulas into algorithms - the standard deviation i knew how to do it, but stuff like calculation integrals and all of these stuff i really don't know - my math notation knowledge got stuck in the middle of highschool, and i choosed fine-arts university, so, during a long time i don't know what is math notation, and that time i had no interest about math notation as i have now (i never thaught those would be helpful for me for picture processing)
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...

#2 Re: Help Me ! » math notation to code notation » 2005-09-06 09:17:47

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:
mathnotationfractalpicturecomp.png

are all simple to translate to code notation?

#4 Re: Help Me ! » math notation to code notation » 2005-08-13 07:38:22

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

Board footer

Powered by FluxBB