expikr
expikr
I was reading https://nelari.us/post/raytracer_with_rust_and_zig/ and the post in 2019 described the pains of doing vector operations when Zig has no operator overloading: ```zig return uv.sub(n.mul(dt)).mul(ni_over_nt).sub(n.mul(math.sqrt(discriminant))); ``` Obviously since then the...
This replaces the incorrectly ported musl code and instead implements the algorithm from [this paper.](https://arxiv.org/abs/1904.09481). ~15% speedup over the old version. Raw sqrt is faster than the new version by...
0.4.37 ```toml # book.toml output.html.fold.enable = true ``` ```md - [Chapter 1](./chapter_1.md) - [Chapter 2](./chapter_2.md) - [Hidden Section](./hidden-section.md) --- [Credits](./credits.md) ``` ![image](https://github.com/rust-lang/mdBook/assets/77922942/b5bdc363-ae01-4e5a-b6ba-856f1e541a40) ![image](https://github.com/rust-lang/mdBook/assets/77922942/9212bd1b-1417-48cd-9ac6-befda3b6bf53)
### Problem Currently, if you wish to read the book offline, you must click on print mode and Ctrl+S the website as one page. However, having everything in one long...
uses `anytype` to enable binary arithmetic operations (add/sub/mul/div) with real arguments
According to WinAPI docs, `TCHAR` and their corresponding string typedefs are aliases for either 8-bit `CHAR` or 16-bit `WCHAR` based on a global compilation switch `UNICODE` in the macro, which...
## Motivation Files are implicitly structs, which lets you do things like: ```zig //! Allocator.zig ptr: *anyopaque, vtable: *const VTable, pub const VTable = ... ``` ```zig //! main.zig const...
There are currently `approxEqAbs` and `approxEqRel` which provides comparison within rough bounds. However, for testing numerical algorithms, the actual ulp error needs to be characterized precisely, it is insufficient to...