aboutsummaryrefslogtreecommitdiff
path: root/core/math
Commit message (Collapse)AuthorAgeFilesLines
* Fix memory leak in `internal_rat_norm`blob18072025-06-231-0/+2
|
* Turn `core:math/bìg` tests into regular `core:testing` tests.Jeroen van Rijn2025-06-112-3/+3
| | | | | | `core:math/big` has been verified against Python's big integer implementation long enough. Turn it into a regular regression test using the `core:testing` framework, testing against a generated corpus of test vectors.
* Add initial tests for big rationalsJeroen van Rijn2025-06-101-3/+2
|
* Move negation in `internal_rat_to_float` to end of procedureFeoramund2025-06-101-3/+3
| | | | | | | This should cause a compiler error, due to the assignment to a named return value in a deferred block. Fixes #4565
* Deprecate old @(deprecated) things.Jeroen van Rijn2025-06-061-1/+1
|
* Add deprecation warnings for `strconv.append_*`Feoramund2025-06-051-0/+5
|
* Rename `fixed.append` to `fixed.write` too, for good measureFeoramund2025-06-051-2/+2
|
* Clarify `strconv.append_*` to `strconv.write_*`Feoramund2025-06-051-3/+3
|
* Fix rand.int_max commentJeroen van Rijn2025-05-281-1/+1
|
* Fix a range check in int_atoi in core:math/big.Barinzaya2025-05-241-1/+1
| | | | | | | The check seems to have been assuming that rune comparisons are unsigned, but they're signed. This was causing an assertion failure for certain input characters (anything with an ASCII value less than '+'/43).
* Fix float64_range exampleJeroen van Rijn2025-04-211-2/+2
|
* Get rid of duplicate `math.signbit` in favor of `math.sign_bit`Jeroen van Rijn2025-04-152-27/+1
|
* Fixed math.nextafter procs skipping from 0 to 1.Barinzaya2025-04-071-3/+3
|
* Fix broken examples in documentation tester.Jeroen van Rijn2025-04-051-1/+1
| | | | | | | | | No more: ``` We could not find the procedure "pkg_foo_example :: proc()" needed to test the example created for "pkg.foo" The following procedures were found: bar() ```
* Add `@(require_results)` to random generatorgingerBill2025-02-241-1/+0
|
* fix typo in float32_range doc stringColter2025-01-291-1/+1
|
* Fix 2x2 matrix inverses in specific.odinprescientmoon2025-01-231-6/+6
|
* math/rand: add @(require_results) to createLaytan Laats2025-01-181-0/+1
|
* Merge pull request #4633 from spahnke/fix-matrix-adjugategingerBill2025-01-063-54/+198
|\ | | | | Fix matrix adjugate
| * Rename adjugate to cofactor to keep existing usages for inverse and ↵Sebastian Pahnke2024-12-283-54/+198
| | | | | | | | determinant correct and add new adjugate procedures
* | General clean up of codegingerBill2025-01-011-24/+0
|/
* Merge pull request #4589 from Pariatech/add-trunc-to-linalg-glslgingerBill2024-12-182-0/+18
|\ | | | | Add trunc to glsl linalg
| * add trunc to glsl linalgGabriel Pariat2024-12-172-0/+18
| |
* | Add `linalg.clamp_length(vector, max_length) -> clamped_vector`Bazzagibbs2024-12-021-0/+12
|/
* Fix binomial functionEvan Martinez2024-11-281-1/+1
|
* Fix typo in Quaternion dot productDudejoe8702024-11-171-3/+3
|
* Minor formatting changegingerBill2024-11-051-6/+6
|
* math/rand: `choice_bit_set` return `not_empty` -> `ok`Laytan2024-10-281-3/+3
|
* math/rand: add `choice_bit_set`Laytan Laats2024-10-261-0/+49
|
* math/rand: support non-contiguous enums in choice_enumLaytan Laats2024-10-251-15/+15
|
* Merge pull request #4203 from karl-zylinski/file-tags-without-commentsgingerBill2024-09-194-4/+4
|\ | | | | Make tags use #+ syntax instead of //+
| * Moved all packages in core, base, vendor, tests and examples to use new #+ ↵Karl Zylinski2024-09-144-4/+4
| | | | | | | | file tag syntax.
* | Remove `distinct` from `core:math/linalg/(glsl|hlsl)` typesgingerBill2024-09-182-109/+109
|/
* Fix #4227Jeroen van Rijn2024-09-101-3/+3
|
* core: improve package doc comments for the documentation generatorLaytan Laats2024-09-031-3/+3
|
* Add math.remap_clamped.Jeroen van Rijn2024-09-011-1/+6
|
* Make math.remap clamp the result in range [new_min, new_max].Karl Zylinski2024-09-011-1/+2
|
* Fix `-vet-tabs` issuesgingerBill2024-08-241-1/+1
|
* Add `core:math.count_digits_of_base`Feoramund2024-08-181-0/+30
|
* Update rand.reset() example.Jeroen van Rijn2024-07-311-1/+1
|
* Clamp dot in `angle_between` to avoid precision errors.Jeroen van Rijn2024-07-281-1/+2
| | | | Fixes #3978
* Improve rand.shuffle further by splitting into 64-bit and 32-bit partsgingerBill2024-07-161-1/+7
|
* Improve `rand.shuffle`gingerBill2024-07-161-1/+1
|
* Make `complex32` use higher precision where possible for calculationsgingerBill2024-07-162-69/+9
|
* Imply `#no_capture` to all variadic parametersgingerBill2024-07-142-9/+9
|
* Add more uses of `#no_capture`gingerBill2024-07-142-9/+9
|
* Fix typogingerBill2024-07-111-1/+1
|
* Add `rand.Generator` and other callsgingerBill2024-07-111-0/+13
|
* Add `gen := context.random_generator` parameters to `rand` callsgingerBill2024-07-114-114/+114
|
* fix `@(optimization_mode)` usage in builtin collectionsLaytan Laats2024-07-081-6/+6
|