12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.3 How to Start the Maplets Package • 2898.3 How to Start the Maplets PackageIf you receive a Maple worksheet with Maplets code, you must first invokethe Maplets package. Press the Enter key after these two possibleexecution groups:> restart:> with(Maplets[Elements]);Important: You must have Java TM Runtime Environment Version1.2.2 installed on your local system. If you do not have Java RuntimeEnvironment Version 1.2.2 installed, see your system administrator. Ifyou are running Red Hat Linux 7.0, Java Runtime Environment Version1.3 is required. If you do not have Java Runtime Environment Version 1.3installed, see your system administrator.8.4 How to Invoke a Maplet from the MapleWorksheetTo start a maplet, press the Enter key after the last colon (:), semicolon(;), or anywhere in an execution group to execute the Maplets code. Inthe following example, the maplet is written as one execution group. Youcan press Enter anywhere in the execution group to execute the code:> mymaplet := Maplet ([> ["Hello World", Button("OK", Shutdown())]> ]):> Maplets[Display](mymaplet);In the following example, the maplet is written as two executiongroups. The maplet must be defined before using the Display command.> with(Maplets[Elements]):> my2maplet := Maplet ([> ["Hello World #2", Button("OK", Shutdown())]> ]):> Maplets[Display](my2maplet);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!