ZX BASIC:COS

From BorielWiki
Jump to: navigation, search

Contents

COS

Syntax

 
COS(numericExpression)

Description

Returns the cosine value of the given argument. Argument must be a numeric expression in radians units. Returned value type is float.

Examples

 
REM Cosine value
PRINT "Cosine value of a is "; COS(a)

Remarks

  • This function is 100% Sinclair BASIC Compatible
  • If the given argument type is not float, it will be converted to float before operating with it.

See also

  • SIN and ASN
  • TAN and ATN
  • ACS
  • Faster library option for lower accuracy trigonometry for games: FCOS
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Translate
Google AdSense