26 lines
626 B
Objective-C
26 lines
626 B
Objective-C
//
|
|
// MPFunctionTerm.h
|
|
// MathPad
|
|
//
|
|
// Created by Kim Wittenburg on 12.11.14.
|
|
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
#import "MPTerm.h"
|
|
|
|
#define MPEvaluateExpression(var, index) NSDecimalNumber *var = [[self expressionAtIndex:index] evaluate:error]; if (var == nil) return nil
|
|
|
|
|
|
|
|
@class MPFunctionTerm, MPFunction, MPParsedExpression;
|
|
|
|
|
|
@interface MPFunctionTerm : MPTerm
|
|
|
|
- (instancetype)initWithFunction:(MPFunction *)function
|
|
errors:(NSArray *__autoreleasing *)errors; /* designated initializer */
|
|
|
|
- (MPParsedExpression *)expressionAtIndex:(NSUInteger)anIndex;
|
|
|
|
@end
|