cospi(x) v.s. cos(pi*x) -- MatLab

 

 cospi(x) v.s. cos(pi*x) -- MatLab


I mentioned the sinpi(x) v.s sin(pi*x) in my article.

this has similar to that.

cos(x) returns the same result as cos(pi*x) but cospi(x) computes accuracy than cos(pi*x).
Because pi in MatLab approximately the pi in math.

more details on:

Comments

Popular posts from this blog

diagonal matrix--diag

a convenient type to record lots of value in MatLab -- cell matrix

Anonymous Function in MatLab