v/vlib/math
2025-09-05 16:47:25 +03:00
..
big math.big: replace division with Knuth, improve performance (#25242) 2025-09-05 16:47:25 +03:00
bits math.bits: add asm implementations for some 64 bit ops (#25020) 2025-08-11 09:01:49 +03:00
complex all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
easing math: add math.easing module, ported from the functions, described in https://nicmulvaney.com/easing and https://easings.net/ (#23251) 2024-12-24 00:46:46 +02:00
fractions all: remove ancient deprecations (#23479) 2025-01-16 16:36:12 +02:00
internal all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
stats type_resolver: fix generic selector field type resolving (continuation of #23456) (#23473) 2025-01-15 09:02:46 +02:00
unsigned math.unsigned: replace untested comments for uint256 public APIs (#24873) 2025-07-10 10:36:52 +03:00
vec math.vec: add rotate_around_* (cw/ccw) functions to vec.Vec2[T] (#23807) 2025-02-26 03:46:18 +02:00
abs.js.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
bits.js.v
bits.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
cbrt.js.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
cbrt.v
const.v vlib: remove modules/functions/fields, deprecated in 2023 (#22750) 2024-11-17 20:09:21 +02:00
div.v
erf.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
erf_test.v
exp.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
exp.js.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
exp.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
factorial.v math: fix typo in factorial.v (#17322) 2023-02-15 19:57:37 +02:00
factorial_tables.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
factorial_test.v
floor.js.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
floor.v math: cleanup floor.v, remove the last goto in the math module 2025-02-06 09:29:21 +02:00
gamma.v math,examples: add examples/sokol/sounds/simple_sin_tone_using_audio_push.v, cleanup math 2025-03-04 12:19:27 +02:00
gamma_tables.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
hypot.v ci: workaround vlib/gg/draw_fns_api_test.v failure with tcc on windows 2023-10-22 18:32:13 +03:00
interpolation.v math: fix doc comment examples 2025-08-13 18:00:18 +03:00
interpolation_bezier.v math,examples: make 2048 use sliding animation for the tile movement (#23268) 2024-12-26 06:39:59 +02:00
interpolation_test.v math: add exp_decay to interpolation.v (#24545) 2025-05-21 21:30:40 +03:00
invhyp.v math: add missing docstrings for vlib/math functions (#19617) 2023-10-22 22:31:12 +03:00
invtrig.js.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
invtrig.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
limit.v markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
log.c.v math: use libc wrappers for math.log2/1, math.log10/1, math.log1p/1 and math.log_b/1; make assert math.log10(10) == 1.0 pass in the common case (#23129) 2024-12-11 12:06:33 +02:00
log.v math: fix math.log10() for -exclude @vlib/math/*.c.v (fix #23136) (#23140) 2024-12-12 23:43:04 +02:00
log_test.v math: fix math.log10() for -exclude @vlib/math/*.c.v (fix #23136) (#23140) 2024-12-12 23:43:04 +02:00
math.c.v all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
math.v math: add remap/5, smoothstep/3 and smootherstep/3 implementations + tests 2025-03-12 08:53:27 +02:00
math_bench_test.v math: fix ./v -prod -cstrict -cc gcc-11 vlib/math/math_bench_test.v (use unions to implement f64_bits/1 and f64_from_bits/1 for compilers != tcc) 2025-03-08 12:28:25 +02:00
math_test.v math: fix math.log10() for -exclude @vlib/math/*.c.v (fix #23136) (#23140) 2024-12-12 23:43:04 +02:00
min_max_abs.v all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
min_max_abs_test.v math: remove the deprecated math.mathutil module too 2022-11-29 14:56:40 +02:00
modf.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
modulo.v fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
modulo_test.v math: add divide_truncated/2, divide_euclid/2, divide_floored/2 and modulo_truncated/2, modulo_euclid/2, modulo_floored/2 (#21759) 2024-06-29 11:24:49 +03:00
nextafter.v
poly.v checker: disallow using a preexisting const name in a for loop, as either a key or value ident (#22108) 2024-08-24 02:16:28 +03:00
pow.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
pow.v math,examples: add examples/sokol/sounds/simple_sin_tone_using_audio_push.v, cleanup math 2025-03-04 12:19:27 +02:00
q_rsqrt.v math: document q_rsqrt 2024-09-24 04:33:46 +03:00
README.md doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
ROADMAP.md math: speedup the pure V math.pow implementation for non-fractional powers (#19270) 2023-09-04 18:37:29 +03:00
scalbn.v
sin.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
sin.js.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
sin.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
sinh.js.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
sinh.v math: update documentation (#14457) 2022-05-20 08:45:54 +03:00
sqrt.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
sqrt.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
square.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
square_test.v math: add more C. fn overrides, for the default C backend (speed up examples/path_tracing.v) (#19271) 2023-09-04 21:09:01 +03:00
tan.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
tan.js.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
tan.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
tanh.js.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
tanh.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
unsafe.js.v
unsafe.v math: fix ./v -prod -cstrict -cc gcc-11 vlib/math/math_bench_test.v (use unions to implement f64_bits/1 and f64_from_bits/1 for compilers != tcc) 2025-03-08 12:28:25 +02:00

Description

math provides commonly used mathematical functions for trigonometry, logarithms, etc.