Add Root Function and Product Function
This commit is contained in:
8
MathKit/MPFunctionLayout.m
Normal file → Executable file
8
MathKit/MPFunctionLayout.m
Normal file → Executable 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];
|
||||
|
||||
Reference in New Issue
Block a user