Here we explain how to use these Nodes in SmowCode.
Apply hyperbolic function: Apply hyperbolic functions to calculate analogs of trigonometric functions for a hyperbola.
1️ Calculate Hyperbolic Sine or Cosine
Use sinh or cosh to model exponential growth or decay in physics or engineering.
Example: Input: sinh(1) → Output: 1.175
2️ Solve Inverse Hyperbolic Equations
Find the angle corresponding to a hyperbolic function using asinh, acosh, or atanh.
Example: Input: asinh(1) → Output: 0.881
3️ Analyze Waveforms
Use hyperbolic functions to model waveforms or other mathematical phenomena.
Apply logarithmics function: Apply logarithmic functions to calculate the exponent to which a base must be raised to produce a given number.
1️ Calculate Base-10 Logarithm
Use log10 to find the logarithm of a number with base 10.
Example: Input: 100 → Output: 2
2️ Compute Base-2 Logarithm
Use log2 to calculate the logarithm of a number with base 2.
Example: Input: 8 → Output: 3
3️ Determine Floating-Point Exponents
Use logb to extract the exponent of a floating-point number.
Example: Input: 16.0 → Output: 4
Apply power function: Perform mathematical operations to calculate powers, roots, or other related functions.
1️ Calculate Exponents
Raise a number to a specific power to solve equations or model exponential growth.
Example: Base: 2, Exponent: 3 → Output: 8
2️ Find Square or Cube Roots
Determine the square root or cube root of a number for geometry or physics calculations.
Example: Input: 27 → Cube Root: 3
3️ Multiply by Powers of 2
Quickly compute values by multiplying a number by a power of 2.
Example: Input: 3, Power: 4 → Output: 48
Apply rounding function: Perform rounding operations to adjust numbers to the nearest integer or specified decimal place.
1️ Round Up to the Nearest Integer
Use the ceiling function to round up a number to the smallest integer greater than or equal to it.
Example: Input: 25.2 → Output: 26
2️ Round Down to the Nearest Integer
Use the floor function to round down a number to the largest integer less than or equal to it.
Example: Input: 25.8 → Output: 25
3️ Round to the Nearest Integer
Use the round function to round a number to the nearest integer.
Example: Input: 25.5 → Output: 26
Apply exponential function: Perform exponential calculations to compute powers of a constant base.
Exponential functions are widely used in mathematics, physics, and engineering to model growth, decay, and other exponential phenomena.
1️ Compute the Exponential Function
Use exp to calculate e^x for a given input.
Example: Input: 1 → Output: 2.718
2️ Calculate Base-2 Exponentials
Use exp2 to compute 2^x for a given input.
Example: Input: 3 → Output: 8
3️ Compute Exponential Minus 1
Use expm1 to calculate e^x - 1 for small values of x to avoid precision loss.
Example: Input: 0.1 → Output: 0.105