Hacker News new | ask | show | jobs
by ionforce 4376 days ago
I am not a scientific programmer, but I'm going to attempt to provide an example anyway until someone else does one better.

I think there are certain mathematical operations that operate over what would be implemented as complex objects, so it is convenient to continue using these agreed upon symbols to implement your work.

  // addition and multiplication of native integers
  1 + 3 * 4

  // add and mult of math objects
  matrixA + matrixB * matrixC

  // here the math is slightly occluded
  add(matrixA, multiply(matrixB, matrixC))