Implemented Expression Evaluation/Parsing with Proper Error Handling
This commit is contained in:
22
MathPad/MPParsedFactor.h
Normal file
22
MathPad/MPParsedFactor.h
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// MPParsedFactor.h
|
||||
// MathPad
|
||||
//
|
||||
// Created by Kim Wittenburg on 10.09.14.
|
||||
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MPParsedFactor : NSObject
|
||||
|
||||
+ (MPParsedFactor *)factorWithDecimalNumber:(NSDecimalNumber *)number;
|
||||
+ (MPParsedFactor *)sinFactorWithFactor:(MPParsedFactor *)factor;
|
||||
+ (MPParsedFactor *)cosFactorWithFactor:(MPParsedFactor *)factor;
|
||||
+ (MPParsedFactor *)tanFactorWithFactor:(MPParsedFactor *)factor;
|
||||
|
||||
- (instancetype)initWithDecimalNumber:(NSDecimalNumber *)number;
|
||||
|
||||
- (NSDecimalNumber *)value;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user