- Details
- Written by: Dustin Rocksvold
- Category: Power Apps
- Hits: 300
Mathematical calculations
udfMultiplyNumbers(Number1:Number, Number2:Number):Number = Number1 * Number2;
udfDivideNumbers(Number1:Number, Number2:Number):Number = Number1 / Number2;
udfAddNumbers(Number1:Number, Number2:Number):Number = Number1 + Number2;
udfSubtractNumbers(Number1:Number, Number2:Number):Number = Number1 - Number2;
udfCalculateVolumeOfCube(Length:Number, Width:Number, Height:Number):Number = Length * Width * Height;
udfCalculateVolumeOfSphere(PI:Number, Radius:Number):Number = 4 / 3 *PI * Radius ^ 3
udfCalculateAreaOfCircle(Radius:Number,PI:Number):Number = PI * Radius ^ 2
Water Calculations
Working as a hydro operator requires controlling the flow and storage of large volumes of water by monitoring and adjusting the amount of water travelling in water conveyances or passing through a hydraulic turbine to generate electricity.
I thought it would be handy to have functions to caluclate the flow and storage values.
Typical units of flow meaurement include cubic feet per second (CFS), Acre-Feet per day (ACFT/Day).
The typical unit of storage we use is Acre-Feet (ACFT).
There are several formulas to convert from flow to storage and vice-versa. I have created functions to allow the calculations to be made. They are outlined below:
