You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making a display for a flight school, and amongst other things, I would like to display runway crosswind component, which is a function of windspeed and angle from the runway centerline. I need to calculate the sin of the angle difference between the wind bearing and the runway bearing, but cannot do this with the current operators (which are just abs and log).
Thanks
The text was updated successfully, but these errors were encountered:
I would be also interested in this, in order to calculate positions on GeoMap. I think those function should cover 99% of use cases you ever would want to do in Grafana:
Trigonometric Functions
( \sin(x) ) : Sine
( \cos(x) ) : Cosine
( \tan(x) ) : Tangent, which is ( \frac{\sin(x)}{\cos(x)} )
( \csc(x) ) : Cosecant, which is the reciprocal of sine
( \sec(x) ) : Secant, which is the reciprocal of cosine
( \cot(x) ) : Cotangent, which is the reciprocal of tangent
Inverse Trigonometric Functions (also known as Arc functions)
( \arcsin(x) ) or ( \sin^{-1}(x) ): Inverse Sine
( \arccos(x) ) or ( \cos^{-1}(x) ): Inverse Cosine
( \arctan(x) ) or ( \tan^{-1}(x) ): Inverse Tangent
And similarly for cosecant, secant, and cotangent
Exponential and Logarithmic Functions
( e^x ) : Exponential function with base e
( a^x ) : Exponential function with base a
( \ln(x) ) : Natural logarithm (base e)
( \log_a(x) ) : Logarithm to the base a. Commonly, if the base isn't mentioned (i.e., ( \log(x) )), it's assumed to be 10 in many contexts, especially in engineering.
Polynomial Functions
( ax^n ) : Power functions where a is a coefficient and n is a non-negative integer.
Root Functions
( \sqrt[n]{x} ): nth root of x. Most commonly, we see the square root (( \sqrt{x} )), which is the positive square root of x.
Hyperbolic Functions
( \sinh(x) ) : Hyperbolic Sine
( \cosh(x) ) : Hyperbolic Cosine
( \tanh(x) ) : Hyperbolic Tangent
And their respective inverse functions
Absolute Value
( |x| ): Absolute value of x
Miscellaneous Functions
( \text{floor}(x) ) : Greatest integer less than or equal to x
( \text{ceil}(x) ) : Smallest integer greater than or equal to x
What would you like to be added:
Please add Sin, Cos and Tan to the list of Math operators for Server Side Expressions
[https://grafana.com/docs/grafana/next/panels/expressions/#math]
Why is this needed:
I am making a display for a flight school, and amongst other things, I would like to display runway crosswind component, which is a function of windspeed and angle from the runway centerline. I need to calculate the sin of the angle difference between the wind bearing and the runway bearing, but cannot do this with the current operators (which are just abs and log).
Thanks
The text was updated successfully, but these errors were encountered: