averbraeck / djunits

Delft Java UNIT System for using strongly-typed quantities and units
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Value of constant PHI is wrong #15

Closed Peter-Knoppers closed 1 year ago

Peter-Knoppers commented 1 year ago

The value of phi should be about 1.61803399. The value in Constants.java is about 2.11803399.

averbraeck commented 1 year ago

Corrected the calculation and added an extra unit test (phi == 1 + 1/phi).