## Maple Questions and Posts

##### These are Posts and Questions associated with the product, Maple

which kind of input is DeepLearning:-Optimizer(GradientDescent()) suppose to take? Nummeric value or function?

I have an assignment for my class but I don't know how to get the answer without getting an error. Maple_2.mw

Vector Valued Functions

and

Level Sets of Scalar Valued Functions

This worksheet is meant to give you some tools that you can use to

explore vector valued functions and scalar valued functions of several variables.

We will use the Student[VectorCalculus]  and the plots  packages.

First we load the packages with a restart at the beginning.  That is

meant to make it easier to check what happens when you run your

solutions.

 > restart; with(Student:-VectorCalculus); BasisFormat(false): with(plots): with(plottools):
 Deivatives and integrals for vector valued functions
 Plotting velocity and acceleration along a curve
 Plotting functions of two variables and contours.
 Exercises

## why doesn't greek char work as tensor index?...    (1)  (2)  (3)   (4)   (5)   (6) ## I cannot load student packages...

windows 11 maple 2020 I can load other packages but cannot load the student packages

## DeepLearning Save/Restore in Win 10 64-Bit...

Session Save doesnt work:

DeepLearning:-Save("model.ckpt");
Error, (in DeepLearning:-Save) format not supported

DeepLearning:-Save("model.h5");
Error, (in DeepLearning:-Save) format not supported

DeepLearning:-Save("model.keras");
Error, (in DeepLearning:-Save) format not supported

Which format is supported?

## Could any one help me in plotting the arrow on the... ## Error, (in IntegrationTools:-Indefinite:-Algebraic...

Why int gives this error? Is this a known problem?

Update

fyi, This is reported to Maplesoft.

Here is updated worksheet. The int() command does not generate the error the second time it used, but generates the error the very first time used. Hopefully will be fixed in 2022 Maple.

 > interface(version); > restart;

Example 1

 > expr:=(7*x - 3 + sqrt(x^2 + (x^3*(x - 1)^2)^(1/3) - x) + sqrt(-2*((-x^2 + x + (x^3*(x - 1)^2)^(1/3)/2)*sqrt(x^2 + (x^3*(x - 1)^2)^(1/3) - x) + x^2*(x - 1))/sqrt(x^2 + (x^3*(x - 1)^2)^(1/3) - x)))/(12*x*(x - 1)); > int(expr,x)

 > int(expr,x) ## pdsolve does not return an answer...

I am attempting to use the pdsolve function in Maple to explicitly solve a PDE which is basically a perturbation of the Laplace equation.  Nothing happens when I enter pdsolve, however, is this because a boundary condition is also needed to produce a solution?  The BC which I have is that f(x, y, z) goes to zero as sqrt(x^2 + y^2 + z^2) goes to infinity but I am not sure how to enter such a BC in Maple.

PDE := diff(diff(f(x, y, z), x), x) + diff(diff(f(x, y, z), y), y) + diff(diff(f(x, y, z), z), z) - exp(-t*exp(sqrt(x^2 + y^2 + z^2)))*(diff(diff(f(x, y, z), x), x) + diff(diff(f(x, y, z), y), y) + diff(diff(f(x, y, z), z), z))/(1 + m/(2*sqrt(x^2 + y^2 + z^2)))^4 = 3/2*exp(sqrt(x^2 + y^2 + z^2) - t*exp(sqrt(x^2 + y^2 + z^2)))*(diff(f(x, y, z), x)*tx/sqrt(x^2 + y^2 + z^2) + diff(f(x, y, z), y)*ty/sqrt(x^2 + y^2 + z^2) + diff(f(x, y, z), z)*tz/sqrt(x^2 + y^2 + z^2))/(1 + m/(2*sqrt(x^2 + y^2 + z^2)))^4;

pdsolve(PDE);

## The Clifford package by Rafal Ablamowicz and Bertf...

Clifford http://math.tntech.edu/rafal/cliff12/index.html

Thank You.

## symbolic calculation takes too much time...

Hello,

I am doing symbolic calculations of multi-body kinematics which involves more than 40-degrees of freedom. I built a module that will construct initial kinematic calculations and it finshes fairly quicly, (about 20s). When I want to retrieve these calculations, stored as proprties of the module, it takes really a long time, we are talking more than 30min. It's strange because these calcualtions were already made during the initalization of the module, I am just retriving them for the purpose of writing the symbolic results to a file to later be used in Matlab as functions.

Thanks.

## Error during integration...

I was computing an integral (Running Maple 18 on Windows 10):

The classic lenght of arc Integral of sqrt(1+(dy/dx)^2) dx

In this case, the function was a cartesian circle (x-R)^2+y^2=R^2 isolated as y=sqrt(R^2-(x-R)^2)

When I do the integration, the result of the integral is not correct.
But if I change R for a, the result is correct. Why? This does not make any sense.

R wasn't assigned to any variable. The code was:

Good Integral

[>y:=expand(sqrt(a^2-(x-a)^2));
[>f:=expand(simplify(sqrt(1+diff(y,x)^2)));
[>S:=int(f,x)+K;

Wrong Integral

[>y:=expand(sqrt(R^2-(x-R)^2));
[>f:=expand(simplify(sqrt(1+diff(y,x)^2)));
[>S:=int(f,x)+K;

In fact, any UPPERCASE letter used as the radius gives me the wrong answer whereas any LOWERCASE letter gives me the proper result. Why is this?

Thanks and have a nice day ## Convolution using FFT...

Hi

My integrals are convolutions.and I know I can evaluate this using numerical integration, but I am seeking a numerical solution of this problem using FFT. I have many many integrals of this type to evaluate and I need FFT for speed reasons.

fft.mw

This might inspire you.

## Solving Fractional Partial Differential Equation u...

How can i get mapple code for solving Fractional Patfial Differential Equation with Laplace, Adomian and New Iteration Method

## how to dsolve to a solution in terms of a number o...

A system of differential equations

But solution I want to express in terms of other specified function

How to dsolve to get a solution that in terms of a list of specified function? For example in terms of sin , cos , Bessel etc ?

Sol := [a(t) = sin(t) + cos(t) , b(t)= sin(t) ....]

## "Execution stopped: Stack limit reached." - Possib...

As a Maple user for 10+ years, I've had plenty of stack limit errors, pretty much all of them my fault. But I am currently experiencing a very unusual one after updating my Mac from Maple 2019 to Maple 2021.2.

I am running a long script to fetch json data from a url, parse it, and do a bunch of analysis. In most cases it works fine, but some cases give either an "Execution stopped: Stack limit reached." error, or the error "Error, (in type/polynom) result from type `algfun` must be true or false". Both are being caused by calling the gfun:-ratpolytocoeff command.

I kind of think some internal memory of Maple is being accidentally overwritten because I can cause the error to occur or not occur by adding / commenting out random lines of code that have nothing to do with the part of the code causing the problem. I've managed to find a fairly small script that causes the problem to occur:

```with(PolynomialIdeals):

root_func := F[0, x]:

latex:-Settings(useimaginaryunit=i):

data := URL[Get](url):
json := JSON[ParseString](data):
json := JSON[ParseString](data):

debug_solved := (x^5-3*x^4+5*x^3-7*x^2+4*x-1)/(x^5-5*x^4+10*x^3-10*x^2+5*x-1):

debug_gfun := gfun[ratpolytocoeff](debug_solved, x, n);```

If I remove ANY of these lines of code, there is no longer any problem, which is very strange because, for example, I'm not using the PolynomialIdeals package anywhere in the script. This particular script works fine on a Linux machine running 2021.0, but yet I am having similar problems on that machine with other cases.

Here's a slightly simpler example in which gfun[ratpolytocoeff] induces a "division by zero" error ("Error, (in convert/fullparfrac/normal_only) numeric exception: division by zero"):

```with(PolynomialIdeals):

latex:-Settings(useimaginaryunit=i):

data := URL[Get](url):
json := JSON[ParseString](data):
json := JSON[ParseString](data):

debug_gfun := gfun[ratpolytocoeff](1/(1-x), x, n);```

After the division by zero error, if I press Ctrl+D to close the Maple command line, it prints
"GC Thread signalAbort 0x7000019a5000 Execution stopped: Stack limit reached.".

Is this an internal Maple bug? Is there any workaround? I am pulling my hair out and would be very grateful for any help.

﻿