nm

11413 Reputation

20 Badges

13 years, 71 days

MaplePrimes Activity


These are questions asked by nm

I've reported this problem to Maple many years ago but still not fixed in Maple 2025.

Maple not able to verify its own solution on some series solutions using odetest.

Any one can suggest a workaround one can use other than odetest to verify ode solution when using series? Or have an idea why this happens?

The solution is correct but for some reason odetest returns FAIL 

Below is one example of many I have

restart;

interface(version);

`Standard Worksheet Interface, Maple 2025.0, Linux, March 24 2025 Build ID 1909157`

 

Physics:-Version();

`The "Physics Updates" version in the MapleCloud is 1861 and is the same as the version installed in this computer, created 2025, April 10, 15:58 hours Pacific Time.`

ode:=x*diff(y(x),x$2)+y(x)=0;
IC:=y(0)=1;
maple_sol:=dsolve([ode,IC],y(x),'series');
odetest(maple_sol,[ode,IC],'series','point'=0);

x*(diff(diff(y(x), x), x))+y(x) = 0

y(0) = 1

y(x) = c__1*x*(series(1-(1/2)*x+(1/12)*x^2-(1/144)*x^3+(1/2880)*x^4-(1/86400)*x^5+O(x^6),x,6))+ln(x)*(series(-x+(1/2)*x^2-(1/12)*x^3+(1/144)*x^4-(1/2880)*x^5+O(x^6),x,6))+(series(1-(3/4)*x^2+(7/36)*x^3-(35/1728)*x^4+(101/86400)*x^5+O(x^6),x,6))

Warning, unable to compute series necessary to test the given solution

FAIL

 

 

Download series_unable_to_odetest_april_12_2025.mw

I know of 3 ways to remove RootOf, but sometimes they give different result. How does one decide which to use? This is done in code. So method to decide can't depend on looking at the screen and see which result one "likes" more than the other.

Is allvalues() the one to use all the time? Could one of these 3 methods fail, and then one has to try the next one?

 

interface(version);

`Standard Worksheet Interface, Maple 2025.0, Linux, March 24 2025 Build ID 1909157`

Physics:-Version();

`The "Physics Updates" version in the MapleCloud is 1859 and is the same as the version installed in this computer, created 2025, April 6, 14:34 hours Pacific Time.`

restart

e:=y*4^(1/3)*((4*x^2*RootOf(_Z^2*y - 4*_Z*x + y) - y^2*RootOf(_Z^2*y - 4*_Z*x + y) - x*y)/y^2)^(1/3) - _C2;

y*4^(1/3)*((4*x^2*RootOf(_Z^2*y-4*_Z*x+y)-y^2*RootOf(_Z^2*y-4*_Z*x+y)-x*y)/y^2)^(1/3)-_C2

convert(e,radical)

y*4^(1/3)*((4*x^2*(2*x+(4*x^2-y^2)^(1/2))/y-y*(2*x+(4*x^2-y^2)^(1/2))-x*y)/y^2)^(1/3)-_C2

DEtools:-remove_RootOf(e)

(1/16)*(c__2^3+4*x*y^2)^2/(y*(4*x^2-y^2)^2)-(c__2^3+4*x*y^2)*x/(y*(4*x^2-y^2))+y = 0

allvalues( e)

y*4^(1/3)*((4*x^2*(2*x+(4*x^2-y^2)^(1/2))/y-y*(2*x+(4*x^2-y^2)^(1/2))-x*y)/y^2)^(1/3)-c__2, y*4^(1/3)*((-4*x^2*(-2*x+(4*x^2-y^2)^(1/2))/y+y*(-2*x+(4*x^2-y^2)^(1/2))-x*y)/y^2)^(1/3)-c__2


 

Download removing_rootof_april_7_2025.mw

How does one create a new section using UI in Maple 2025?

I've done this many times in Maple 2024. To make section there, I simply do
   Insert -> Section

But I am not able to find this using the UI in Maple 2025, under insert 

Ofcourse, I know I can add section using

                    CTRL .

which works. But I was wondering, where is insert section is in the GUI? Hard to find. I do not see anything called section in the menu there., I tried few of the other items, but so far, can't find section.

Is it possible to reduce icon shaps in the top bar in Maple 2025 UI? It takes too much vertical space

Here is how Maple 2024 UI look in worksheet mode:

 

Compare to same thing in Maple 2025, worksheet mode

Comparing just the top bars, we see 2025 is much large and takes too much space.

We see Maple 2025 takes about twice as much vertical space as Maple 2024 from top of window to the first > in the worksheet.

Is it possible to have top bar in Maple 2025 with small icons or minimized somehow?

I also find the blank gray line annoying above the |> in Maple 2025 and I have no idea what it is there.

Over all, I like Maple 2024 UI much more. Easier to look at on the eye for me. The dark gray background is annoying for me to look at.

I am trying a trial version of Maple 2025 on Linux, since not able to use Maple 2025 on windows (uninstalled it).

Everything was working well, (no UI shuffling at all so far) except now I find I am not able to export plot to PostScript. 

Same code works fine using cmaple.exe on windows. But using cmaple on Linux, it fails.

How does one export a plot using Maple 2025 on linux to PostScript, and it must be using cmaple, since I run everything from command line.

I also made sure I have /home/me/maple2025 and /home/me/maple2025/bin.X86_64_LINUX
 in my Linux $PATH. 

Here is a MW

# A.mpl file

    p:=plot(sin(x),x=-3..3):
    plotsetup(ps, plotoutput="p.ps");
    try
        print(p); 
    catch:        
        plotsetup(default):   
        print(lastexception);
    end try;     

   exit();

I run the above using the command

>/home/me/maple2025/bin.X86_64_LINUX/cmaple A.mpl 

License expires in 14 days
    |\^/|     Maple 2025 (X86 64 LINUX)
._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2025
 \  MAPLE  /  All rights reserved. Maple is a trademark of
 <____ ____>  Waterloo Maple Inc.
      |       Type ? for help.
>     p:=plot(sin(x),x=-3..3):
>     plotsetup(ps, plotoutput="p.ps");
>     try
>         print(p); 
>     catch:        
>         plotsetup(default):   
>         print(lastexception);
>     end try;     
cannot locate postscript AFM files
                                                                     0, "Error in device driver: plot terminated"


>     exit();
                                                                                        exit()

> quit
memory used=7.5MB, alloc=41.3MB, time=0.06
>

The problem seems to be due to cannot locate postscript AFM files which I've seen this before and was never been able to get any help on it. I asked about this missing AFM files here many years ago, but can't find the question now searching and no one from Maplesoft seems to know why this happens.

Same exact code works fine on windows under DOS using cmaple.exe.

Any one knows any workaround? I looked at export command but it does not support PostScript.

Without being able to export plots from command line, I can't use Maple 2025 on Linux. So I hope there is a work around. Are these AFM files supposed to come with Maple? Maybe I need to set some path to help Maple find them?

When I google this, it says

So maybe Maple does not ship with AFM files like it does with windows and mac? Where do I get these from and where do I put them on Linux? Why Maplesoft does not mention anything about this in installation instructions for Linux?

Could someone with Maple 2025 on Linux try the above and see if it works for them?

Update

so far, jpeg export works only

>/home/me/maple2025/bin.X86_64_LINUX/cmaple A.mpl
License expires in 14 days
    |\^/|     Maple 2025 (X86 64 LINUX)
._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2025
 \  MAPLE  /  All rights reserved. Maple is a trademark of
 <____ ____>  Waterloo Maple Inc.
      |       Type ? for help.
#    p:=plot(sin(x),x=-3..3):
>     plotsetup(jpeg, plotoutput="p.jpeg");
>     try
>         plot(sin(x),x=-3..3);
>     catch:        
>         plotsetup(default):   
>         print(lastexception);
>     end try;     

>     exit();
                                                                                                         exit()

> quit

But can't use jpeg. need ps.

I also copied Maple afm/ to /usr/share/fonts and refreshed font config using fc-cache -fv , and Maple still does not find the AFM font files.  So I have no idea how to make Maple find its own afm/ folder.

 

Update

Version information. I use Linux inside Virtual box. I use Arch based distrubution called endeavouros

cat /etc/os-release
NAME="EndeavourOS"
PRETTY_NAME="EndeavourOS"
ID="endeavouros"
ID_LIKE="arch"


hostnamectl
 Static hostname: me-virtualbox
       Icon name: computer-vm
  Virtualization: oracle
Operating System: EndeavourOS                     
          Kernel: Linux 6.13.8-arch1-1
    Architecture: x86-64
 Hardware Vendor: innotek GmbH
  Hardware Model: VirtualBox
Firmware Version: VirtualBox
   Firmware Date: Fri 2006-12-01
    Firmware Age: 18y 3month 3w 5d   

 

First 7 8 9 10 11 12 13 Last Page 9 of 201