Hi Ryo, v^2 is computed as an exponent operation v**2. As everything coming in from the command line is stored as real (double-precision) data, the code does check whether the value of the exponent is in fact an integer, explicitly asking for r**int(s) when s is an integer, so that happens regardless of what the compiler might do. Because squaring data is such a common operation, it would probably be worthwhile for us to change the code to do the case of v^2 as v*v. Ansley On 8/28/2018 9:39 PM, Ryo Furue wrote:
|