//
//  MPFractionFunction.h
//  MathKit
//
//  Created by Kim Wittenburg on 07.10.14.
//  Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//

#import "MPFunction.h"


/*!
 @header
 This file contains the <code>MPFractionFunction</code> class.
 */



@class MPFractionFunction, MPExpression;


/*!
    @class      MPFractionFunction
    @abstract   This class represents a fraction.
 
    @discussion A fraction has two children: the numerator 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 numerator is
                divided by the denominator.
 */
@interface MPFractionFunction : MPFunction

/*!
    @property   numeratorExpression
    @abstract   The receiver's numerator.
 
    @discussion The numerator must not define a variable.
 */
@property (nonatomic, strong) MPExpression *numeratorExpression; /* 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
