Math operators

The following table of mathematical operators covers the most basic mathematical functions that are expected to be found in a programming language or its standard libraries:

Operator

Example

Description

abs

abs x

Overloaded absolute value

acos

acos x

Overloaded inverse cosine

asin

asin x

Overloaded inverse sine

atan

atan x

Overloaded inverse tangent

ceil

ceil x

Overloaded floating-point ceil

cos

cos x

Overloaded cosine

exp

exp x

Overloaded exponent

floor

floor x

Overloaded floating-point floor

log

log x

Overloaded natural logarithm

log10

log10 x

Overloaded base-10 logarithm

(**)

x ** y

Overloaded exponential

pown

pown x y

Overloaded integer exponential

round

round x

Overloaded rounding

Get F# for Quantitative Finance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.