num-complex
Complex numbers implementation for Rust
0.4.6
350M downloads/mo
#317 most downloaded on crates.io
rust-num/num-complex
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 6 months
Most releases are documented
notes for 16 of 26 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
26 releases · first in 2016
0 releases in the last 12 months
see the full history below
Release timeline
26 releases · Apr 2016 to Jan 2025Releases
latest 26-
0.4.607 May 2024 -
0.4.506 Feb 2024 -
0.4.413 Aug 2023 -
0.4.319 Jan 2023 -
0.4.217 Jun 2022Release notes
Open source →- The new
ComplexFloattrait provides a generic abstraction between floating-pointTandComplex<T>. Complex::expnow handles edge cases with NaN and infinite parts.
Contributors: @cuviper, @JorisDeRidder, @obsgolem, @YakoYakoYokuYoku
- The new
-
0.4.129 Apr 2022Release notes
Open source →Complex::from_str_radixnow returns an error for radix > 18, because 'i' and 'j' as digits are ambiguous with i or j imaginary parts.Complex<T>now implementsbytemucktraits whenTdoes.Complex::ciscreates a complex with the given phase, e<sup>i θ</sup>.
Contributors: @bluss, @bradleyharden, @cuviper, @rayhem
-
0.4.006 Mar 2021Release notes
Open source →randsupport has been updated to 0.8, requiring Rust 1.36.
Contributors: @cuviper
-
0.3.129 Oct 2020Release notes
Open source →- Clarify the license specification as "MIT OR Apache-2.0".
Contributors: @cuviper
-
0.3.013 Jun 2020Release notes
Open source →Enhancements
- The new "libm" feature passes through to
num-traits, enablingFloatfeatures on no-stdbuilds.
Breaking Changes
num-complexnow requires Rust 1.31 or greater.- The "i128" opt-in feature was removed, now always available.
- Updated public dependences:
randsupport has been updated to 0.7, requiring Rust 1.32.
- Methods for
T: Floatnow take values instead of references, most notably affecting the constructorfrom_polar.
Contributors: @cuviper, @SOF3, @vks
- The new "libm" feature passes through to
-
0.2.410 Jan 2020Release notes
Open source →Complex::newis now aconst fnfor Rust 1.31 and later.- Updated the
autocfgbuild dependency to 1.0.
Contributors: @burrbull, @cuviper, @dingelish
-
0.2.311 Jun 2019Release notes
Open source →Complex::sqrt()is now more accurate for negative reals.Complex::cbrt()computes the principal cube root.
Contributors: @cuviper
-
0.2.210 Jun 2019Release notes
Open source →Complex::l1_norm()computes the Manhattan distance from the origin.Complex::fdiv()andfinv()use floating-point for inversion, which may avoid overflows for some inputs, at the cost of trigonometric rounding.Complexnow implementsnum_traits::MulAddandMulAddAssign.Complexnow implementsZero::set_zeroandOne::set_one.Complexnow implementsnum_traits::Powand addspowiandpowu.
Contributors: @adamnemecek, @cuviper, @ignatenkobrain, @Schultzer
-
0.2.109 Oct 2018 -
0.2.025 May 2018Release notes
Open source →Enhancements
Complexnow implementsnum_traits::InvandOne::is_one.Complexnow implementsSumandProduct.Complexnow supportsi128andu128components with Rust 1.26+.Complexnow optionally supportsrand0.5, implementing theStandarddistribution and a genericComplexDistribution.Remwith a scalar divisor now avoidsnorm_sqroverflow.
Breaking Changes
num-complexnow requires rustc 1.15 or greater.- There is now a
stdfeature, enabled by default, along with the implication that building without this feature makes this a#![no_std]crate. A few methods now requireFloatCore, and the remaining methods based onFloatare only supported withstd. - The
serdedependency has been updated to 1.0, andrustc-serializeis no longer supported bynum-complex.
Contributors: @clarcharr, @cuviper, @shingtaklam1324, @termoshtt
-
0.1.4425 Jan 2025Nothing published for this version
-
0.1.4308 Mar 2018 -
0.1.4208 Feb 2018 -
0.1.4101 Dec 2017Nothing published for this version
-
0.1.4024 Jul 2017Nothing published for this version
-
0.1.3915 Jul 2017Nothing published for this version
-
0.1.3809 Jun 2017Nothing published for this version
-
0.1.3709 Apr 2017Nothing published for this version
-
0.1.3626 Feb 2017Nothing published for this version
-
0.1.3518 Aug 2016Nothing published for this version
-
0.1.3312 Jul 2016Nothing published for this version
-
0.1.3214 Apr 2016Nothing published for this version