@@ -2799,6 +2799,16 @@ Syntax</h3>
2799
2799
<<min()>> = min( <<calc-sum>> # )
2800
2800
<<max()>> = max( <<calc-sum>> # )
2801
2801
<<clamp()>> = clamp( <<calc-sum>> #{3} )
2802
+ <<sin()>> = sin( <<calc-sum>> )
2803
+ <<cos()>> = cos( <<calc-sum>> )
2804
+ <<tan()>> = tan( <<calc-sum>> )
2805
+ <<asin()>> = asin( <<calc-sum>> )
2806
+ <<acos()>> = acos( <<calc-sum>> )
2807
+ <<atan()>> = atan( <<calc-sum>> )
2808
+ <<atan2()>> = atan2( <<calc-sum>> , <<calc-sum>> )
2809
+ <<pow()>> = pow( <<calc-sum>> , <<calc-sum>> )
2810
+ <<sqrt()>> = sqrt( <<calc-sum>> )
2811
+ <<hypot()>> = hypot( <<calc-sum>> # )
2802
2812
<dfn><calc-sum></dfn> = <<calc-product>> [ [ '+' | '-' ] <<calc-product>> ]*
2803
2813
<dfn><calc-product></dfn> = <<calc-value>> [ [ '*' | '/' ] <<calc-value>> ]*
2804
2814
<dfn><calc-value></dfn> = <<number>> | <<dimension>> | <<percentage>> | ( <<calc-sum>> )
@@ -2808,6 +2818,10 @@ Syntax</h3>
2808
2818
is required on both sides of the <css> +</css> and <css> -</css> operators.
2809
2819
(The <css> *</css> and <css> /</css> operaters can be used without white space around them.)
2810
2820
2821
+ Several of the math functions above have additional constraints
2822
+ on what their <<calc-sum>> arguments can contain.
2823
+ Check the definitions of the individual functions for details.
2824
+
2811
2825
UAs must support [=math function=] expressions of at least 20 terms,
2812
2826
where each <code> NUMBER</code> , <code> DIMENSION</code> , or <code> PERCENTAGE</code> is a term.
2813
2827
If a [=math function=] contains more than the supported number of terms,
0 commit comments