Ad
  • Custom User Avatar

    Still having trouble with floating point comparisons:

    {msg} - actual and expected differ at index 1 ==> expected: <5.461111421504143E14> but was: <5.4611114215041425E14>
    
  • Custom User Avatar

    Nitpick: g should be named G in initial code. g is typically the acceleration on earth surface (aka 9.81).

    Similarly, parameter names are inappropriate: names like force should be about a single value, not on the list of values. Something like forces or forceArray is more appropriate as its name.