| Function Name | Description |
|---|---|
| min | Minimum value among arguments |
| max | Maximum value among arguments |
| sqrt | Square root |
| round | Round to the nearest integer |
| floor | Round down to the nearest integer |
| ceil | Round up to the nearest integer |
| random | Generate a random number |
| sum | Sum of all arguments |
| avg | Average of all arguments |
| mean | Same as `avg` |
| median | Median value |
| stddev | Standard deviation |
| log | Logarithm |
Declare Speed of Light Variable
speedOfLight = 299792458 #m/s
Define Energy and Heat Functions
energy(m,c) = m*c^2
nuclearEnergyProduced(efficiency, deltaE, time) = (efficiency * deltaE) / time
Calculate Heat Produced in Nuclear Reaction
e_watts = nuclearEnergyProduced(0.33, energy(0.003, speedOfLight), 60*60*24) => 1,029,823,642.3026
e_gigawatts = e_watts/10^9 => 1.0298