Socket
Book a DemoInstallSign in
Socket

abels-complex

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abels-complex

0.2.0
Source
Cargo
Version published
Maintainers
1
Created
Source

abels-complex

Complex numbers with rectangular and polar representations

design decisions

ComplexPolar does not implicitly normalize (|z| >= 0 and -PI < Arg(z) >=PI)

no implicit conversions between rectangular and polar forms just to get back the original type

no_std support

no_std support can be enabled by compiling with --no-default-features to disable std support and --features libm for math functions that are only defined in std.

features

  • [approx] - traits and macros for approximate float comparisons
  • [libm] - uses libm math functions instead of std
  • [glam] - implements From<glam::Vec2> for Complex and From<Complex> for glam::Vec2
  • [rand] - implements rand::distr::Distribution<Complex> for rand::distr::StandardUniform and rand::distr::Distribution<ComplexPolar> for rand::distr::StandardUniform

FAQs

Package last updated on 12 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.