MaplePrimes Questions

Count the number of paths from A to B in the following figure. 
The paths may not touch themselves and must pass through every square (horizontally or vertically).
one of the paths 
How many  paths  possible ?
Een paden probleem
Approach via graph theory?

I have tried to create a function "modelica style" that acts as a custom component.

The Modelica code editor recognizes it.  It correctly sees the language constructs "function, parameter, etc." and then the block has the {} symbology showing it is a function.  Also, the Syntax Template doesn't seem to work per chapter 07.  i.e., the reference of "function" plus CTL-SHIFT-SPACE does nothing. 

However, trying to call this does not work and errors that the function is being called from main as a public declaration and gving the named function "myfunction_1" instantiation within main which errors out.

    Modelica coide in Main:   public MyFunction myfunction_1 annotation(Placement(transformation(origin={120.0,160.0},extent={{-20.0,-20.0},{20.0,20.0}},rotation=0)));

MyFunction is declared below Main along with another custom component model class "UseMyFunction" that calls this function with the variables being used in the simulation.

Where can I find the modelica language references that MapleSim accepts in the modelica coding region?

This mini-attempt is to find the usage syntax and method to reach higher custom functions that act similar to "Math" code blocks in the library.

Bill

How can I display numerical values alongside a plot as shown in the sample below? What is the syntax?

Q_legend.mw

Hi,

I am trying to reproduce a polar curve, as shown in the attached picture.
I have tested several polar expressions and different plotting options in Maple, but I can’t manage to obtain an exact match

If you have any ideas about a possible polar equation, a combination of functions, or plotting parameters (sampling, domain, polarplot options, etc.), I would be very grateful.

Thanks in advance for your help!

Q_Polar.mw

Dear Power Users, I do hope someone is willing to help me out. I want to do the analysis of 3 cycles of an extension-load measurement. I would like to calculate:

- the slope of the upgoing part of the cycle between 1 and 4 N (loading stiffness)

- the slope of the unloading part of the cycle between 4 and 1 N

- the surface of each cycle.

- the extension at the minimum and maximum value of each cycle

I did this before using a special addin of mathcad 15 but as this is no longer available I hope to do this in maple. 

AnalysisCyclicData2.maple

Hi

I’m currently trying to animate a graph with about 50 vertices of this type, and I was thinking of using the GraphTheory package for that purpose.

If you have any suggestions or possible directions to explore, I’d be very happy to hear them.

Thanks again for all the helpful tips and support — they’re truly appreciated
 

I want to present my regional plot similar to the sample shown, using appropriate legends and labels. What syntax should I use to achieve this? Also, the axis labels need to be clear and bold, as they currently appear faded. What modifications should I make in the syntax?

Q1.mw

SAMPLE:

according to help under Explore, it says

I wanted to add title at top of the Explore window. But title do not show. 

Explore(plot(a*sin(b*t),t=0..10),
   parameters=[              
        [a=1..20],
        [b=1..20]
        ],
  initialvalues=[a=6,b=5],placement='right',width=300,'title'="My Explore");

I was expecting My Explore to show at top of frame above. What Am I doing wrong?

Maple 2025.2

Is this a bug?  Or one can not mix slider for one variable and textarea for second variable in Explore?

Or do I need to initialize the textarea is special way? Nothing in help shows an example with textarea and slider together.

interface(version);

`Standard Worksheet Interface, Maple 2025.2, Windows 10, November 11 2025 Build ID 1971053`

No textarea , works OK

 

restart;

Explore(plot(a*sin(b*t),t=0..10),
   parameters=[              
        [a=1..20],
        [b=1..20]
        ],
  initialvalues=[a=6,b=5],placement='right',width=300);

 

 

Change one slider to textarea, now error

 

restart;

Explore(plot(a*sin(b*t),t=0..10),
   parameters=[              
        [a=1..20],
        [b,'controller' = 'textarea','label'="b" ]
        ],
  initialvalues=[a=6,b=5],placement='right',width=300);

Warning, expecting only range variable t in expression 20*sin(b*t) to be plotted but found name b

Warning, expecting only range variable t in expression sin(b*t) to be plotted but found name b

 

 

Download explor_feb_19_2026.mw

I am not able to find an example or how to do this in help.

In Explore, when making a slider, using say 

parameters=[  [ a=1..1000 ], .....]

Is there is a way to tell it to increment "a" by say 10 for each movement of the slider using the mouse? it seems to default in this case to 1 each time.

Actually it is very hard now to make the slider go to the exact value I want. Is there a way to better control what value "a" should be?

In Mathematica, slider supports increment. Also it is possible to open each slider and then click on + and -  in the small window that opens below the slider, where now each click on + now moves the slider by the increment one decides on.  But in Maple I see no place to tell it what increment to use?

If I try this (similar to when using seq command, as in seq(i, i=1..1000,10), it does not work

[ a=1 .. 100, 10 ]

Hoping it will increment/decrement by 10 each time, it gives error.

Imagine a slider that goes from 1 to 10,000. Then how will one control the slider to be say exactly 5,550 ?  It is impossible now. Here is an example

Explore(plot(a*sin(x),x=-3*Pi..3*Pi,'gridlines'),
   parameters=[[a=1 .. 10000]],
   initialvalues=[a=1000],
   width=500,placement='right');

Now try using the slider above to make it go to a=5550. 

very hard to control the slider as it is very sensetive to slider motion, a small touch makes it move by large amount.   

I was hoping that if I can make it move by say 10 at time, so it will be at least easier to control.

Any suggestions?

I see a web page called Slider Component   but have no idea if this is related to Explor or not and how to use it there.

I know I can change the slider to "controller = textarea", and this way I can type in the value I want instead of using a slider. But want to see first if standard slider has a way to allow changing the increment amout. If not, then may be will use textarea instead of slider.

I define coordinates, a metric, and a tensor. Works good.

I calculate a covariant derivative, and I get an answer in terms of an unevaluated sum of Christoffel symbols. Calculating a Christoffel symbol works well. How to evaluate the result of the covariant derivative?

Thanks in advance.

Hello everyone,

I am trying to reproduce some results from the paper:

Peristaltic flow of a magnetohydrodynamic nanofluid through a bifurcated channel

I want to generate:

  • Fig 1 (channel geometry)

  • Fig 8 (pressure gradient vs axial coordinate ξ)

  • Fig 11 (streamlines)

  • Table 1 (resistance values)

I am using Maple 2018.

Below is my Maple code:
p1_ravi_sir.mw

Problem:

The plots do not match the paper

p1_ravi_sir.pdf

Why does my resistance value not change with M

 Could someone please help me:

  • Correct the Maple code

  • Solve equations (18–22) properly in Maple

  • Generate the correct plots 

Thank you very much.

Is the Wigner Ville transform implemented in Maple or its' Toolboxes?

I have not used Explore command alot. Just starting to learn it. But I am stuck on improving the basic look of it.

There are way too much space between sliders and too much white space between the sliders and the plot itself. Also the fonts used below the sliders are too large and do not even know how to remove them or make the fonts smaller.

Looking at the help page, I do not see options to adjust these. But help pages are very hard to read to find an option.

Here is an example. I am using worksheet, with 100% default zoom.

Explore(plot((b+0.7)*sin(x/(a+1))/x+b, x=-4*Pi .. 4*Pi, view=-2 .. 6,gridlines),
        a=-2.0 .. 1.0, 
        b=0.0 .. 3.0,
        width=300,placement='top');

This is the output

I'd like to be like this

Overall, even though Explore works, I find the look of it pretty bad actually due to the above issues. It does not look professional and polished.

This is a big problem, because if there are 4 or 5 sliders, now one can not even see the plot itself when changing the sliders, because one has to scroll down to see the plot now and then scroll back up to reach the top sliders to move them.  Even on Large monitor.

Is there a trick to control the spacing between sliders and the main body which is the plot window? Removing all wasted white space and making sliders font smaller for numbers below the sliders or remove them will go long way to making Explore command output look better.

In attempting to follow a link in a Maple Template, I tried to use the URL in the link to search in the Application Center.This link only brings you to the main page for the application center. Attempts to search for AID 2438 did not bring up any returns.  Is there a procedure to search from the main page using the application ID. 

Specifically, I used the following link in the template.  Maple Application Center link

My question is: How do I search for a specific application page in the application center when you have an application ID?

1 2 3 4 5 6 7 Last Page 2 of 2453