Searched refs:sqrt (Results 1 - 11 of 11) sorted by relevance

/ast/src/lib/libast/uwin/
H A Dacosh.c49 * sqrt(x)
56 * acosh(x) = log [ x + sqrt(x*x-1) ]
59 * acosh(x) := log1p( sqrt(x-1) * (sqrt(x-1) + sqrt(x+1)) ) .
104 t=sqrt(x-1.0);
105 return(log1p(t*(t+sqrt(x+1.0))));
H A Dasinh.c50 * sqrt(x)
57 * asinh(x) = sign(x) * log [ |x| + sqrt(x*x+1) ]
60 * := sign(x)*(log1p(x)+ln2)) if sqrt(1+x*x)=x, else
61 * := sign(x)*log1p(|x| + |x|/(1/|x| + sqrt(1+(1/|x|)^2)) )
100 s=one/t; return(copysign(log1p(t+t/(s+sqrt(one+s*s))),x)); }
H A Dsupport.c43 * Some IEEE standard 754 recommended functions and remainder and sqrt for
49 * slow (in particular, drem and sqrt is extremely inefficient). Each
58 * sqrt(x)
339 extern double sqrt(x) function
352 /* sqrt(NaN) is NaN, sqrt(+-0) = +-0 */
355 /* sqrt(negative) is invalid */
364 /* sqrt(INF) is INF */
375 /* generate sqrt(x) bit by bit (accumulating in q) */
549 if(x!=x||x==0.0) return(x); /* sqrt(Na
[all...]
/ast/src/cmd/ksh93/tests/
H A Dpointtype.sh36 print -r $((sqrt(_.x*_.x + _.y*_.y)))
50 (( (q.len - sqrt(5)) < 10e-10 )) || err_exit 'q.len != sqrt(5)'
65 (( (pp[2].len - sqrt(5)) < 10e-10 )) || err_exit 'pp[2].len != sqrt(5)'
88 print -r $((sqrt(_.x*_.x + _.y*_.y + _.z*_.z)))
H A Drecttype.sh36 print -r $((sqrt(_.x*_.x + _.y*_.y)))
H A Dcubetype.sh43 print -r $((sqrt(_.x*_.x + _.y*_.y)))
60 (( got == exp )) || err_exit "b.len incorrect for iteration $i -- expected $exp, got '$got = sqrt(${b.x}*${b.x}+${b.y}*${b.y})'"
62 [[ "$got" == "$exp" ]] || err_exit "\${b.len} incorrect for iteration $i -- expected $exp, got '$got = sqrt(${b.x}*${b.x}+${b.y}*${b.y})'"
108 print -r $((sqrt(_.x*_.x + _.y*_.y + _.z*_.z)))
132 (( abs(c.len - sqrt(90)) < 1e-10 )) || err_exit 'c.len != sqrt(90)'
H A Dtypes.sh302 len() { print -r -- $(( sqrt(_.x**2 + _.y**2))) ;}
489 ((.sh.value=sqrt(_.x**2 + _.y**2) ))
524 print -r -- $((sqrt(_.x**2 + _.y**2)))
529 print -r -- $((sqrt(_.x**2 + _.y**2)))
H A Darith.sh468 [[ $(print -- $((sqrt(-1.0)))) == ?(-)nan ]]|| err_exit 'sqrt(-1.0) != NaN'
/ast/src/cmd/dsslib/stats/
H A Dstats.c220 r->value.number = sqrt(u);
655 number(op, (Cxnumber_t)sqrt(u), FW);
/ast/src/lib/libtk/generic/
H A DtkCanvArc.c1457 tx = sqrt(tmp);
1522 ty = sqrt(tmp);
/ast/src/lib/libtksh/tcl/
H A DtclExpr.c295 {"sqrt", 1, {TCL_DOUBLE}, ExprUnaryFunc, (ClientData) sqrt},

Completed in 40 milliseconds