Ruby: internal/math.h File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Functions
math.h File Reference

Internal header for Math. More...

`#include "ruby/ruby.h"`

Go to the source code of this file.

## Functions
VALUE | rb_math_atan2 (VALUE, VALUE)
VALUE | rb_math_cos (VALUE)
VALUE | rb_math_cosh (VALUE)
VALUE | rb_math_exp (VALUE)
VALUE | rb_math_hypot (VALUE, VALUE)
VALUE | rb_math_log (int argc, const VALUE *argv)
VALUE | rb_math_sin (VALUE)
VALUE | rb_math_sinh (VALUE)

## Detailed Description

Internal header for Math.

Author
  Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org

Copyright
  This file is a part of the programming language Ruby. Permission is hereby granted, to either redistribute and/or modify this file, provided that the conditions mentioned in the file COPYING are met. Consult the file for details.

Definition in file math.h.

## Function Documentation

## ◆ rb_math_atan2()

VALUE rb_math_atan2 | ( | VALUE | ,
|  | VALUE |
| ) |  |

Referenced by rb_complex_arg().

## ◆ rb_math_cos()

VALUE rb_math_cos | ( | VALUE |  | ) |

## ◆ rb_math_cosh()

VALUE rb_math_cosh | ( | VALUE |  | ) |

## ◆ rb_math_exp()

VALUE rb_math_exp | ( | VALUE |  | ) |

## ◆ rb_math_hypot()

VALUE rb_math_hypot | ( | VALUE | ,
|  | VALUE |
| ) |  |

Referenced by rb_complex_abs().

## ◆ rb_math_log()

VALUE rb_math_log | ( | int | argc,
|  | const VALUE * | argv
| ) |  |

Definition at line 468 of file math.c.

References argc, argv, DBL2NUM, and rb_scan_args().

Referenced by imp1().

## ◆ rb_math_sin()

VALUE rb_math_sin | ( | VALUE |  | ) |

## ◆ rb_math_sinh()

VALUE rb_math_sinh | ( | VALUE |  | ) |