Items tagged with maplet maplet Tagged Items Feed

Using previous inputs in new maplet...

Yesterday at 2:34 PM by mathallica 0 Maple
How can i use previous inputs in new maplet window.For example i have two maplet windows; maplet1 and maplet2 I use some inputs as a functions in maplet1 and i open new window by using botton from maple1.I also want to use same inputs for calculating function in maplet2

GUI programming

April 30 2013 by rt 5

hallo guys,

my goal: i wanna create some buttons and scale and position them individualy. like i can do in any visual IDE.

Could some one help me with some example code, showing how to create a button on a specific position, maybe load a picture on the button if it gets pressed?

 

thx in advance

I created a maplet in maple using the following codes:

> restart:
> with(Maplets[Elements]):
> m5:=Maplet(
> Window('title'="Turev",
> [
> ["Fonksiyon:",TextField['Y1']()],
> ["Turev Degiskeni:",TextField['Y2'](3)],
> TextBox['TB1']('editable'='false',3..40),
> [Button("Turevi Hesapla",Evaluate('TB1'='diff(Y1,Y2)')),
> Button("Tamam",Shutdown(['Y1','Y2','TB1'])),
> Button("Temizle",SetOption('Y1'=""))]

I need the button that will change the content (list) of a ListBox. When I create such Maplet, ListBox behaves very strange! The ListBox sometimes shows the list after the button click, but sometimes the list disappears. 

The code below reproduces this strange behavior. Just click the button several times.

 

with(Maplets[Elements]):

getObjects := proc()
local testList;
use Maplets:-Tools in
testList := ["YAHOO", "YAHOO", "YAHOO", "YAHOO", "YAHOO", "YAHOO"];...

i'am using maplet shortcut in maple 

but it did not show in table form, it only gives final answer.

 

use DocumentTools in 
with(LinearAlgebra):with(VectorCalculus):with(linalg):

# F1,F2,F3 are my equations
F1:=Do(%f1);
F2:=Do(%f2);
F3:=Do(%f3);

# these is my initial point
X1:=Do(%x1);
X2:=Do(%x2);
X3:=Do(%x3);

# the whole operation
F := Matrix(1 .. 3, 1 .. 1, [[F1], [F2], [F3]]);
J := Jacobian([F1, F2, F3], [x1, x2, x3]);

A user recently sent to me a Maplet that includes the display of an array of plots. This maplet works fine when run under the classic interface but not under the standard interface. As I tried to understand this problem I believe I have narrowed it down to a difference in the way the classic and standard interfaces handle an array of plots.

The attached worksheet is a very simplified example that shows the problem. What should happen is that pressing the "Plot single" button should show a single graph, pressing the "Plot array" button plots the empty axes, and pressing the "Plot displayed array" button displays a 2x2 array of plots. The second and third buttons illustrate the need for "plots:-display" in the action definition for this button.

Unfortunately, this works only in the classic interface. In the standard interface the "plot displayed array" button does not display anything. I should add that it appears to work correctly when exported as a .maplet file and run with the Maplet Viewer.

I have uploaded the worksheet: PlotArrayMapletDem.mw

 

 

 

 

 

 

 

 

 

proc5.mw

 

 

 

I am writing a module that will have several procedures. This module will be loaded using "with(modulename)."

Inside one of the procedures (a procedure dealing with opening a data file) I am testing for the existence of a file and, if it does not exist, it should open a filedialog so I can navigate to the relevant folder that has the file. Like this (test is set from the existence-checker to be true or false):

if (not test) then # have to get and set currentdir

maple maplets program

April 22 2012 by joannjubin 10


What is the maplet in maple ? What does it help me?

What is the maple sim ? where I can download it ?

adding button into maplets

April 18 2012 by davidp 5

how do i add more buttons into my maplets

maplet programming

April 17 2012 by joannjubin 10

how do i write this procedure in maplet. 

I'm writing a maplet and I would like to put in my MathMLViewer two equations. Each equation in different line. How can I do this using MathML[Export]() while setting the value of MathMLViewer ?


Is there a way to create an interactive plot, and put it in a Maplet, so I could get onclick coordinates and display some points there on my plot ? I checked Maple help and I didn't find any onclick event for plot or Maplets,Elements,Plotter but I found something called PlotComponent and there are some options like clickx, clicky. Can I use it somehow in Maplet, or maybe there's another solution ?

I would like to save a simple plot to jpeg file on my hard disk. I've got a Maplet, and a Button which looks like that

Button['SIM']
 (
     "Save image",
     onclick=Evaluate('function'='saveImage()')
)

and a procedure:

saveImage := proc()

   plotsetup('jpeg', 'plotoutput'="plot.jpeg", 'plotoptions'="portrait,noborder");
   plot3d(sin(x)+cos(y), x=0..2*Pi, y=0..2*Pi, 'axes'='boxed');
1 2 3 Page 1 of 3