by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 5.0, Creation date: 2020-10-25, Last change: 2025-09-15
ps=KW2PS(kw)
kw: | SI unit for power in KW |
ps: | horse power value |
KW2PS(1) % A 1000W stove plate consumes more power than a horse, humans maximum 360W
This function, KW2PS, is designed to convert power from kilowatts (KW) to horsepower (PS). It is a simple conversion utility that is part of the SolidGeometry library, specifically categorized under auxiliary procedures.
The function performs a straightforward calculation to convert kilowatts to horsepower. The conversion factor used is 1.36, which means that 1 kilowatt is equivalent to 1.36 horsepower. The formula used in the function is:
ps = kw * 1.36;
For example, calling KW2PS(1) will return 1.36, indicating that 1 kilowatt is equivalent to 1.36 horsepower. This example highlights that a 1000W stove plate consumes more power than a horse, as a human's maximum power output is approximately 360W.
The function is part of a suite of conversion utilities, which include:
PS2KW: Converts horsepower to kilowatts.Fahrenheit2Celsius: Converts Fahrenheit to Celsius.French2mm: Converts French gauge to millimeters.mm2inch: Converts millimeters to inches.Charriere2mm: Converts Charriere gauge to millimeters.Gauge2mm: Converts gauge to millimeters.AWG2mm: Converts American Wire Gauge to millimeters.