Cosine of fi
object
y = cos(theta)
y = cos(theta)
returns the cosine of fi
input theta
using a table-lookup algorithm.
|
|
|
|
Calculate the cosine of fixed-point input values.
theta = fi([0,pi/4,pi/3,pi/2,(2*pi)/3,(3*pi)/4,pi]) theta = 0 0.7854 1.0472 1.5708 2.0944 2.3562 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13 y = cos(theta) y = 1.0000 0.7072 0.4999 0.0001 -0.4999 -0.7070 -1.0000 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15