Comments (8)
Quaternions should NOT be in the sdtlib. It is too esoteric and multiple implementations exist for different use-cases. Clearly in the realm of specialized libraries.
from zig.
Complex numbers naturally arise as an algebraic extension of real numbers when you take operations like sqrt(-1)
. And set of complex numbers are algebraically closed, i.e. all algebraic operations on complex numbers result in complex numbers. Quaternions, on the other hand is a different construction all together. They are non-commutative and are an instance of Clifford algebra. They are very useful in graphics, for quaternions are naturally related to spacial rotations. Graphics, physics simulations, gaming libraries are the natural places to implement Quaternions.
from zig.
Duplicate #947
from zig.
That one was a general discussion on math types at the language level, focused on usability features like operator overloading. This one is for the stdlib, specifically for whether or not quat has a place in the stdlib at all.
from zig.
Are Complex numbers in the stdlib?
from zig.
std.math.Complex
from zig.
Also note that complex numbers are in the C99 spec and, if I understood correctly, there are efforts to move them out from the zig std and into the language itself. (#16278)
from zig.
Duplicate of #947. This issue is also too vague. @expikr please keep your open non-bug issue count below 5. You are currently at 16, so you're already 11 over budget.
from zig.
Related Issues (20)
- Zig build system incorrectly parses some depfiles generated by Rust on Windows
- implement std.Progress for single-threaded mode
- std.Progress: add byte unit flag and resource scope; support throughput calculation
- implement std.Progress IPC for WASI
- implement std.Progress IPC for Windows
- add support for targeting glibc 2.39
- Progress display is cut off horizontally HOT 2
- `zig fmt` outputs invalid syntax when formatting an error set with doc comments onto one line
- Latest master tarball is unable to build a stage4 zig HOT 3
- upperBound and lowerBound has inconsistent callback types HOT 1
- "offsetof" from C header does not handle union within struct HOT 2
- x86_64 backend miscomp
- When compiling for android, and linking libc, you will always hit a @compileError HOT 1
- Progress cuts off prints to the terminal HOT 5
- x86_64 backend `genSetReg called with a value larger than dst_reg`
- Crash when using ArrayList init with ArenaAllocator HOT 1
- error: NoSpaceLeft with MacOS target on x86 host HOT 2
- Thread.Pool cannot be spawned with !void function HOT 1
- New progress goes in the way of interactive CLI apps HOT 1
- setting global cache directory to relative path causes build failure of dependencies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zig.