Is multiplication always commutative in inexact floating point arithmetic?

前端 未结 2 1680
不知归路
不知归路 2020-12-11 21:39

I\'m trying to understand some code in the D language runtime. It seems like there are separate functions for the following two things:

array1[] += scalar *         


        
2条回答
  •  臣服心动
    2020-12-11 22:03

    I guess the difference is just in the function prototypes - one is (double, double[]) and the other is (double[], double). But the result should be the same either way.

提交回复
热议问题