#ticket #1513 added asin() support
This commit is contained in:
parent
5a21fe7ae8
commit
0c2f4831d8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue