redweasel
redweasel
@Rmano if it's a tool, you can make a button on your pen change to that tool in the preferences.
That's what I meant in my comment by making the **tool** bold. Because it is important, that it is it's own tool.
I would rather propose to add ```rust impl Complex { pub fn mul_i(self) -> Self { Self { re: -self.im, im: self.re, } } } ``` so you can write...
@a-samea your solution would have the same performance for floats due to the compiler optimizing the multiplication with 0,1 out, I assume, but I like that explicit, as for types...
This also fixes https://github.com/rust-num/num-complex/pull/113 so that test can be merged afterwards as well.
I retract my statement. Actually both cases had not been fixed. Now (with my last commit) the atanh case is fixed, but the atan case remains unfixed. The correct fix...
I would like to mention, that `mul_add` already exists and does almost exactly what you want, so this idea seems reasonable. Maybe a function `div_add` would also be reasonable.