Skip to content

Commit

Permalink
Fix pow for negative exponents < 1
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddiM8 committed Apr 3, 2024
1 parent f846a5b commit a9a56a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kalk/src/kalk_value/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ impl KalkValue {
) => {
if self.has_imaginary()
|| imaginary_rhs != &0f64
|| (real_rhs > &0f64 && real_rhs < &1f64)
|| (real < 0f64 && real_rhs.clone().abs() < 1f64)
{
let a = real;
let b = imaginary;
Expand Down

0 comments on commit a9a56a6

Please sign in to comment.