Archived
1
This repository has been archived on 2022-08-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mathpad/MathKit/MPRootFunction.m
2017-08-31 00:04:21 +02:00

40 lines
694 B
Objective-C
Executable File

//
// MPRootFunction.m
// MathPad
//
// Created by Kim Wittenburg on 11.01.15.
// Copyright (c) 2015 Kim Wittenburg. All rights reserved.
//
#import "MPRootFunction.h"
#import "MPRootTerm.h"
#import "MPExpression.h"
@implementation MPRootFunction
MPFunctionAccessorImplementation(ExponentExpression, _exponentExpression)
MPFunctionAccessorImplementation(RootExpression, _rootExpression)
- (NSArray *)childrenAccessors
{
return @[@"exponentExpression", @"rootExpression"];
}
- (Class)functionTermClass
{
return [MPRootTerm class];
}
- (NSString *)description
{
return [NSString stringWithFormat:@"Root(%@, %@)", self.exponentExpression, self.rootExpression];
}
@end