Re: [Numpy-discussion] numpy grant update
31 Oct
2017
31 Oct
'17
11:38 a.m.
Date: Fri, 27 Oct 2017 17:52:23 -0400 From: Marten van Kerkwijk
Hi Peter,
When using units, if `a` is not angular (or dimensionless), I don't see how one could write code in which your example wouldn't fail... But I may be missing something, since for your example one would just realize that cos(ka)+i sin(ka) = exp(ika), in which case the log is just ika and one can the whole complexity...
Hi Marten, Sorry, I thought I replied to you but somehow it didn’t go through. Yes, that example was a bit contrived, but it was just an example where something like sin(x) can be meaningful even if x is dimensional (though you much more typically see these things with log or exp). Best, Peter
2483
Age (days ago)
2483
Last active (days ago)
0 comments
1 participants
participants (1)
-
Peter Creasey