API reference Dodo 0.1.4

std/math/trig

Public declarations, types, methods, and source contracts for std/math/trig.

On this page

Library guide · API index and notation

This page is generated from the bundled library in this checkout. Signatures and adjacent source comments are reproduced below; the linked guide explains usage, storage, failures, and platform support.

import "std/math/trig"

Names used in signatures

Unqualified names denote this package’s types (including other source files in the same package), language built-ins, or generic parameters such as T. Qualified names use the import aliases below. These aliases belong to the library source; import a dependency yourself to use its alias in your program.

Alias Package Source file
math std/math trig.dodo

sin

Function · Source

pub fn sin(value: f64) -> Result<f64, math.MathError>

cos

Function · Source

pub fn cos(value: f64) -> Result<f64, math.MathError>

tan

Function · Source

pub fn tan(value: f64) -> Result<f64, math.MathError>

atan

Function · Source

Atan reduction: reciprocal above 1; pi/4 transform above tan(pi/8). The alternating series then has |argument| <= sqrt(2)-1.

pub fn atan(value: f64) -> f64

atan2

Function · Source

pub fn atan2(y: f64, x: f64) -> f64

asin

Function · Source

pub fn asin(value: f64) -> Result<f64, math.MathError>

acos

Function · Source

pub fn acos(value: f64) -> Result<f64, math.MathError>

Type to search all documentation.

Keyboard shortcuts

Search documentation
Ctrl K or /
Move through results
↑ ↓
Open selected result
Enter
Close a dialog
Esc
Show these shortcuts
?