arithmetic functions such as sqrt fails
Bug #243285 reported by
lrgarrett
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ksh (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
According to the man page for ksh the following arithmetic functions are built in:
abs acos acosh asin asinh atan atan2 atanh cbrt copysign cos cosh erf erfc exp exp2 expm1 fabs fdim finite
floor fma fmax fmod hypot ilogb int isinf isnan lgamma log log2 logb nearbyint nextafter nexttoward pow
remainder rint round sin sinh sqrt tan tanh tgamma trunc
However when I try to use the function such as:
print $(( sqrt(25) ))
I get the error message
/bin/ksh: sqrt(25) : unknown function
I tried the same command on other distributions of ksh93, RH, Fedora, AIX and I received the correct answer of 5.
tags: | added: kubuntu |
To post a comment you must log in.
I can confirm this bug. I'm running Kubuntu 8.04 and I get the same 'unknown function' error when I tried using exp and log. I tried sin and cos too to see if it was a syntax error on my part, but they also failed.