#ticket #1513 added asin() support

This commit is contained in:
Martin Ettl 2010-04-02 20:59:39 +02:00
parent 5a21fe7ae8
commit 0c2f4831d8
1 changed files with 2 additions and 2 deletions

View File

@ -2474,8 +2474,8 @@ void CheckOther::checkMathFunctions()
{ {
mathfunctionCallError(tok); mathfunctionCallError(tok);
} }
// acos( x ) x is defined for intervall [-1,+1], but not beyound // acos( x ), asin( x ) where x is defined for intervall [-1,+1], but not beyound
else if(Token::Match(tok, "acos ( %num% )") && else if(Token::Match(tok, "acos|asin ( %num% )") &&
fabs(MathLib::toDoubleNumber(tok->tokAt(2)->str())) > 1.0) fabs(MathLib::toDoubleNumber(tok->tokAt(2)->str())) > 1.0)
{ {
mathfunctionCallError(tok); mathfunctionCallError(tok);