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/MPFractionFunction.h
2014-12-17 22:04:49 +01:00

46 lines
1.1 KiB
Objective-C

//
// MPFractionFunction.h
// MathPad
//
// Created by Kim Wittenburg on 07.10.14.
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//
#import "MPFunction.h"
@class MPFractionFunction, MPExpression;
/*!
@class MPFractionFunction
@abstract This class represents a fraction.
@discussion A fraction has two children: the nominator and the denominator.
Typically it is displayed with a horizontal bar between the two
child expressions which are on top and below the bar
respectively. When a fraction is evaluated the nominator is
divided by the denominator.
*/
@interface MPFractionFunction : MPFunction
/*!
@property nominatorExpression
@abstract The receiver's nominator.
@discussion The nominator must not define a variable.
*/
@property (nonatomic, strong) MPExpression *nominatorExpression; /* Index 0 */
/*!
@property denominatorExpression
@abstract The receiver's denominator.
@discussion The denominator must not define a variable.
*/
@property (nonatomic, strong) MPExpression *denominatorExpression; /* Index 1 */
@end