Build and Share Interactive Content
|
|
|
Maple 2022 provides additional tools for creating documents and interactive applications programmatically. These tools can be used to develop Maple Learn content or to create applications to be used in Maple. Maple Learn is a new online environment designed specifically for teaching and learning mathematics.
|
Canvas Scripting
|
|
Maple 2022 greatly extends the tools for creating Canvas-based documents and interactive applications programmatically.
The Canvas package provides a framework for Maple users to easily build applications that can be used both in Maple and also shared on the web through Maple Learn. These applications can gather user input and compute using standard Maple commands in either environment.
|
Canvas Package
|
|
The DocumentTools[Canvas] package builds on DocumentTools component primitives to provide a simple way to generate a grid layout of text and math. It provides an easy mechanism to programmatically generate a page of math text and other elements. New in Maple 2022 is the ability to add Sliders, 3-D Plots, Images, Hyperlinks, Line-Drawings, and many new options for controlling the display of math and text.
|
|
3-D Plot Example
|
|
>
|
with(DocumentTools:-Canvas):
|
>
|
cv := NewCanvas([
Text("Volume of Revolution",fontsize=24),
"This solid of revolution is created by rotating",
f(x) = cos(x) + 1,
Text("about the y=0 axis on the interval %1",(0 <= x) and (x <= 4*Pi)),
Plot3D( "Student:-Calculus1:-VolumeOfRevolution(cos(x) + 1, x = 0 .. 4*Pi, output = plot, caption=``)" )
]):
|
|
|
|