We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For anyone facing the same issue, following is the solution.
+ (DDMathFunction) asinhFunction { DDMathFunction function = ^ DDExpression* (NSArray *arguments, NSDictionary *variables, DDMathEvaluator *evaluator, NSError **error) { REQUIRE_N_ARGS(1); DDExpression *argument = [arguments objectAtIndex:0]; argument = _DDDTOR(argument, evaluator, error); NSNumber *n = [[arguments objectAtIndex:0] evaluateWithSubstitutions:variables evaluator:evaluator error:error]; RETURN_IF_NIL(n); NSNumber *result = [NSNumber numberWithDouble:asinh([n doubleValue])]; return [DDExpression numberExpressionWithNumber:result]; }; return DD_AUTORELEASE([function copy]); } + (DDMathFunction) acoshFunction { DDMathFunction function = ^ DDExpression* (NSArray *arguments, NSDictionary *variables, DDMathEvaluator *evaluator, NSError **error) { REQUIRE_N_ARGS(1); DDExpression *argument = [arguments objectAtIndex:0]; argument = _DDDTOR(argument, evaluator, error); NSNumber *n = [[arguments objectAtIndex:0] evaluateWithSubstitutions:variables evaluator:evaluator error:error]; RETURN_IF_NIL(n); NSNumber *result = [NSNumber numberWithDouble:acosh([n doubleValue])]; return [DDExpression numberExpressionWithNumber:result]; }; return DD_AUTORELEASE([function copy]); } + (DDMathFunction) atanhFunction { DDMathFunction function = ^ DDExpression* (NSArray *arguments, NSDictionary *variables, DDMathEvaluator *evaluator, NSError **error) { REQUIRE_N_ARGS(1); DDExpression *argument = [arguments objectAtIndex:0]; argument = _DDDTOR(argument, evaluator, error); NSNumber *n = [[arguments objectAtIndex:0] evaluateWithSubstitutions:variables evaluator:evaluator error:error]; RETURN_IF_NIL(n); NSNumber *result = [NSNumber numberWithDouble:atanh([n doubleValue])]; return [DDExpression numberExpressionWithNumber:result]; }; return DD_AUTORELEASE([function copy]); }
The text was updated successfully, but these errors were encountered:
Unit tests for issue #49
8d8c1ad
This is fixed on the 2.0 branch, which will be merged in to master soon.
2.0
master
Sorry, something went wrong.
No branches or pull requests
For anyone facing the same issue, following is the solution.
The text was updated successfully, but these errors were encountered: