735 Reputation

11 Badges

9 years, 90 days

MaplePrimes Activity

These are questions asked by sand15

I use Maple 2020 on a Windows 10 PC.

The command ssystem("CMD") enables to launch any Windows command accessible from the shell.
But how to launch a PowerShell command?

For instance ssystem("get-process") returns -1 (not surprising in fact for get-process is not a shell process).
How can I tell Maple that this command is to be found in the PowerShell ?

And even, I this possible for, in the ssystem help page, it's said that not all the command can be launched by ssystem


I have just come across this curious but really boring problem.
In the code snippet below, expr1 and expr2 are identical.

data := [a=1, b=2]:
  piecewise(And(x(t) > a, x(t) < b), 1, 0),
expr1 := eval(eval(%, data),  x(t)=z):
plot(expr1, z=0..3);

  piecewise(And(z > a, z< b), 1, 0),
expr2 := eval(%, data),:
plot(expr2, z=0..3);

But if I change the parameterization of the problem, expr2 is still correct but expr1 is not

data := [d=1.5, a=0.5]:
  piecewise(And(x(t) > d-a, x(t) < d+a), 1, 0),
expr1 := eval(eval(%, data),  x(t)=z):
plot(expr1, z=0..3);

  piecewise(And(z > d-a, z< d+a), 1, 0),
expr2 := eval(%, data),:
plot(expr2, z=0..3);

Where does this come from?

PS: I'm sorry not to be able loading the mw file



diff([f, g], t):  #ok

a := [alias()]:
diff(a, t);
      [0, 0]

More generally, how can we differentiate a list of aliases without naming them explicitely?

Thanks in advance

I'm adjusting a Maple 2015 code for it works correctly in Maple 2020.
A being some matrix, this command executed in Maple 2015 returns a plot with the desired color.

matrixplot(A, heights=histogram, color="X11 Thistle1")

When executed in Maple 2020 the color of the bars is desperatly black.
Note that syntaxes like color=red or color=ColorTools:-Color([1, 0, 0]), despite what seems to be said in the matrixplot help page (wherein the reference to plot:-color help page) keep returning a black plot.
The only thing I'm able to do to turn the plot to red is this

F := (x, y) -> 1:
matrixplot(A, heights=histogram, color=F)

How can I obtain a plot with the color I want?

PS: maybe I'm not very astute, but it looks like the help pages are not very explicit on this point.


I try using the DeepLearning package.
I use the function Classify and, even in the simplest test case presented in the its help page (please look at it), I regularly get connection errors to the mpython server as soon as I execute classifier := Classify(...) or classifier(...) more than once.
Errors are one of these twos

Error, (in Train) unable to communicate with mpython server
Error (in Python:-EvalFunction) unable to communicate with mpython server

I work with Windows 7 Enterprise, on an 8 proc PC and 64 GB of memory. The worst situation happened when Maple didn't even return these errors and that I saw inflating the consumed memory in 2 minutes, forcing me to manually shut down my PC because the task manager wasn't no longer  operational.

Is it a known problem?
Could it be an installation problem?

Even if it's not the point here, I would like to say that trying to use the DeepLearning package is really challenging considering the poverty of the help pages.

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