// // MPFractionFunction.h // MathPad // // Created by Kim Wittenburg on 07.10.14. // Copyright (c) 2014 Kim Wittenburg. All rights reserved. // #import "MPFunction.h" /*! @header This file contains the MPFractionFunction class. */ @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