Giter VIP home page Giter VIP logo

Comments (8)

slonik-az avatar slonik-az commented on May 31, 2024 2

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.

slonik-az avatar slonik-az commented on May 31, 2024 2

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.

nektro avatar nektro commented on May 31, 2024

Duplicate #947

from zig.

expikr avatar expikr commented on May 31, 2024

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.

ajahraus avatar ajahraus commented on May 31, 2024

Are Complex numbers in the stdlib?

from zig.

mlugg avatar mlugg commented on May 31, 2024

std.math.Complex

from zig.

expikr avatar expikr commented on May 31, 2024

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.

andrewrk avatar andrewrk commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.