
/* Generated by Interface Builder */

#import "Controller.h"
#import <appkit/Application.h>
#import "MathTool.h"
#import "MathGraph.h"
#import <appkit/Window.h>
#import <appkit/ScrollView.h>
#import <appkit/Font.h>
#import <appkit/Text.h>

@implementation Controller

- appDidInit:sender
{
   [mathTool initMath:self];
   [mathTool executeCommand:"Clear[x]; Clear[y]" resultType:NONE];
   [self makeKeyAndOrderFront:self];
   return self;
}
   
- plot:sender
{
    [mathTool executeCommand:"Plot3D[Sin[x y], {x, -2, 2}, {y, -2, 2}]" resultType:GRAPHICS];
    [mathGraph display:[mathTool graphicsString]];
    return self;
}

@end
