Archived
1

Add Root Function and Product Function

This commit is contained in:
Kim Wittenburg
2017-08-31 00:04:21 +02:00
parent 43b907ba88
commit 3681e1416c
18 changed files with 864 additions and 0 deletions

8
MathKit/MPFunctionLayout.m Normal file → Executable file
View File

@@ -12,14 +12,18 @@
#import "MPFunction.h"
#import "MPFractionFunction.h"
#import "MPRootFunction.h"
#import "MPParenthesisFunction.h"
#import "MPPowerFunction.h"
#import "MPSumFunction.h"
#import "MPProductFunction.h"
#import "MPFractionFunctionLayout.h"
#import "MPRootFunctionLayout.h"
#import "MPParenthesisFunctionLayout.h"
#import "MPPowerFunctionLayout.h"
#import "MPSumFunctionLayout.h"
#import "MPProductFunctionLayout.h"
#import "NSIndexPath+MPAdditions.h"
@@ -42,6 +46,10 @@
return [[MPPowerFunctionLayout alloc] initWithFunction:function parent:parent];
} else if (class == [MPFractionFunction class]) {
return [[MPFractionFunctionLayout alloc] initWithFunction:function parent:parent];
} else if (class == [MPProductFunction class]) {
return [[MPProductFunctionLayout alloc] initWithFunction:function parent:parent];
} else if (class == [MPRootFunction class]) {
return [[MPRootFunctionLayout alloc] initWithFunction:function parent:parent];
}
return [[self alloc] initWithFunction:function
parent:parent];