Changeset 1661 for trunk/MagicSoft/Mars/mdata
- Timestamp:
- 11/21/02 15:04:04 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mdata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataChain.cc
r1629 r1661 69 69 // atan(x) arc tangent (inverse tangent) of x 70 70 // sqrt(x) square root of x 71 // sqr(x) square of x 71 72 // abs(x) absolute value of x, |x| 72 73 // floor(x) round down to the nearest integer (floor(9.9)=9) … … 225 226 if (txt=="atan") return kEATan; 226 227 if (txt=="sqrt") return kESqrt; 228 if (txt=="sqr") return kESqr; 227 229 if (txt=="exp") return kEExp; 228 230 if (txt=="pow10") return kEPow10; … … 468 470 case kEATan: return atan(val); 469 471 case kESqrt: return sqrt(val); 472 case kESqr: return val*val; 470 473 case kEExp: return exp(val); 471 474 case kEPow10: return pow(10, val); … … 551 554 case kEATan: str += "atan" ; break; 552 555 case kESqrt: str += "sqrt" ; break; 556 case kESqr: str += "sqr" ; break; 553 557 case kEExp: str += "exp" ; break; 554 558 case kEPow10: str += "pow10"; break; -
trunk/MagicSoft/Mars/mdata/MDataChain.h
r1629 r1661 34 34 kEATan, 35 35 kESqrt, 36 kESqr, 36 37 kEPow10, 37 38 kEExp,
Note:
See TracChangeset
for help on using the changeset viewer.