ZCubes/How to Apply Universal Constants and Unit Conversions
How to Apply Universal Constants and Unit Conversions
All the Universal constants or Physical/Chemical constants such as ‘Gravitational constant’, ‘Speed of light’, ‘Avogadro’s number’ etc are available in ZCubes in a way they can be used in functions. This video demonstrates how to use these constants in Z programming or spreadsheet computations using easy notations. ZCubes handles computations with ‘Units’ which is extremely useful in scientific computations.
Video
Examples
Universal constants that are pre-defined in ZCubes can be used in functions by using '%' symbol before the constant parameter.
E.g 1] To calculate the Energy 'E', the universal constant value of speed of light can be used directly in ZCubes as:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle E(2)}
displays the result as 179751035747363520.
E.g 2] To calculate the Force 'F', the gravitational constant can be used in ZCubes as:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle F := m*%g;}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle F(2)}
displays the result as 19.6133.
E.g 3] To calculate the Energy 'E'and display it using appropriate unit, the ZCubes code can be written as:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle E := m*%c^2;}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle E(2kg)<>J}
..'J(Joule)' is the MKS unit of Energy
displays the result as 179751035747363520J.
© Copyright 1996-2020, ZCubes, Inc.