Jump to content

Trigonometric functions: Difference between revisions

Lhogho
(Added a solution for MATLAB)
(Lhogho)
Line 587:
print radcos :pi / 4
print 4 * radarctan 1</lang>
 
 
[[Lhogho]] has pi defined in its trigonometric functions. Otherwise the same as UCB Logo.
<lang logo>print sin 45
print cos 45
print arctan 1
print radsin pi / 4
print radcos pi / 4
print 4 * radarctan 1</logo>
 
=={{header|Lua}}==
<lang lua>print(math.cos(1), math.sin(1), math.tan(1), math.atan(1), math.atan2(3, 4))</lang>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.