C math and money
Calculate a change in temperature, pack boxes, or round a bill.
Everyday arithmetic and rounding
- absIn C, abs returns the magnitude of a number.
- ceilIn C, ceil rounds toward positive infinity.
- floorIn C, floor rounds toward negative infinity.
- fmaxKeep enough seats for a booking
- fminCap a voucher at the total due
- nearbyintRound a scale reading at an exact tie
- roundDisplay a delivery estimate in minutes
Powers, roots, and logarithms
- cbrtMeasure a cube-shaped parcel
- expCheck the baseline of a growth model
- expm1Recover a small percentage increase
- logMeasure the continuous growth needed to double
- log10Count orders of magnitude in a reading
- log1pConvert a small growth rate accurately
- powProject repeated doubling
- sqrtFind the side of a square garden
Angles and distances
- hypotMeasure a diagonal without squaring each side
- acosRecover the angle of an awning arm
- asinRecover a ladder angle from its height
- atanTurn a ramp slope into an angle
- atan2Find a direction on a map
- cosFind the horizontal reach of an awning
- coshEstimate the shape of a hanging cable
- sinFind the vertical share of a ladder
- sinhEstimate the slope of a hanging cable
- tanCalculate rise per metre of horizontal run
- tanhSmooth a strong sensor signal