## Thomas Richard

Mr. Thomas Richard

## 3407 Reputation

14 years, 76 days
Maplesoft Europe GmbH
Technical professional in industry or government
Aachen, North Rhine-Westphalia, Germany

## solving an identity...

One way to obtain these coefficients is as follows:

 > restart:
 > n:=3:
 > ls:=expand((3+2*x+3*x^2)^n)
 (1)
 > rs:=sum(b[i]*x^i,i=0..2*n);
 (2)
 > sol:=solve(identity(ls=rs,x));
 (3)
 > assign(sol); # optional step
 > b[4];
 (4)
 >

Please see ?solve,identity for more details.

## Maple Player...

Yes, the free Maple Player is covering this. It is actually a bit more than a static viewer; please see the description. All mainstream platforms (Windows, Linux, macOS) are supported.

## A guess...

If I understand that correctly, you can prescribe some k<>0, and then search for the remaining variables:

```k := 17:
eqn := (x+a)*(x+b)*(x+c)*(x+d)+k = 0;
sol := isolve(eqn);
eval(sol, _Z1=-4); # plug in any integer for _Z1
eval(eqn, %); # check eqn

```

Is that what you meant?

## You need to insert a statement separator...

Maple is trying to tell you that the input framed in red does not make sense syntactically.

You need to insert a statement separator (colon or semicolon) at the end of the first assignment in the loop.

Like all toolboxes, the QCT requires the same Maple version it was made for. In particular, QCT 2023 will only work with Maple 2023 - and I vaguely guess that's what you are asking about...

## int option method=Pseudoelliptic...

In Maple 2023, you can tackle some of them with new (or newly documented) int option method=Pseudoelliptic (see ?updates,Maple2023,AdvancedMath).

I have not tried to simplify the results, though.

## No, it cannot be suppressed. Don't y...

No, it cannot be suppressed. Don't you find it useful?

## dilog is a special case of a polylog...

It may not be too obvious, but you can save a lot of work by proceeding like this:

```expr__1:=int(sec(x + y)*sec(x - y)/(sec(x)*sec(y)),x = 0 .. Pi/4, y = 0 .. Pi/4);
convert(expr__1,polylog);
simplify(%);```

## Brief summary...

BlockImporter is a Maple toolbox that reads a Simulink .mdl file, along with initializations in an .m file (Matlab code). The model equations are extracted, simplified (in an optional step) and can be fed into Maple's DynamicSystems package. There are some restrictions on the set of supported Simulink blocks, however; also linked from the page you already found.
Its builtin documentation is available here.

It certainly supports Windows 10 - what made you think otherwise?

There is no equivalent in MapleSim, although its Simulink connector toolbox (covering the opposite direction) can re-import Simulink parameters to update your plant model - a kind of co-simulation where the controller is typically modelled in Simulink.

## Syntactical issue...

You had entered some expressions as e^something where Maple expects exp(something); it will emit a warning message.

If you correct that, the isolate call will succeed, but it returns t2 = -50.*ln(RootOf(p)) where p is a polynomial of high degree. Is that what you need?

By the way, the factor ln(e) may be removed.

## OpenMaple API for Python...

@vs140580 About question 2: calling Maple from other programming languages is done via the OpenMaple API, and Maple 2023 extends this to cover Python. Please see here for an overview.

If you want to create a GUI in Maple itself, there are two approaches: Maplets and DocumentTools.

## Result...

Maple 2023 returns 2268 (in ~3 minutes on my laptop).

## Memory requirement...

I suppose it's about the third-order ODE found by FindODE (see here and here). That seems to be fairly complicated - it quickly exhausts all memory on my office laptops at least. But the dsolve call can reliably be cancelled, it does not hang.

By the way, you don't need to post separate questions if they are all about the same equation.

## DEtools:-FindODE...

Since your examples involve univariate functions only, I guess you want to obtain ODEs (ordinary differential equations), not PDEs. In that case, take a look at Maple's FindODE routine in the DEtools package. Basic usage:

```with(DEtools):
Phi := w -> (p1*exp(q1*w)+p2*exp(q2*w))/(p3*exp(q3*w)+p4*exp(q4*w));
ode := FindODE(Phi(w),y(w));```

Please keep in mind that FindODE is restricted to certain types of ODEs; see its help page for more information.

## No!...

Releasing a recording of a Sneak Preview would be counter-productive, wouldn't it? ;-)

 3 4 5 6 7 8 9 Last Page 5 of 44
﻿