## how to view source code in a .maple file (workbook...

I'd like to view the Maple source code in .maple file. I am not able to find how to do this.

I tried commands in 136697-Can-One-Get-The-Source-Code-Back-From

which applies to .mla using the march command. But it did not work for .maple. It gives an error when trying it on .maple file.

I can open the .maple file in the Maple user interface OK using File->Open

but other than documentation, I see no Maple code.

https://maple.cloud/app/5137472255164416

Since most Maple code can be viewed, I assume one can also view the source code in the above.

Any idea how to do this?

## harmless assumptions changes the form of the final...

trying some examples from 209970-Exact-Solutions-For-PDE-And-Boundary--Initial-Conditions-2018

I noticed some answer change when adding assumptions which should not really cause the answer to change. Numerically, both answers seem to be the same. But one is series solution and the other with assumptions added uses integrals.

In wave pde on string where left end at x=0 and adding assumptions x>0,t>0 to pdsolve should produce the same form and it does on some problems but no on others.

Compare

```#example 19, wave pde, on string left end fixed, right end moving, with source, no initial velocity
restart;
pde := diff(u(x, t), t\$2) = 4*diff(u(x, t), x\$2)+(1+t)*x;
bc := u(0,t)=0,u(Pi,t)=sin(t);
ic := u(x,0)=0,eval(diff(u(x,t),t),t=0)=0;

sol:=pdsolve([pde, bc,ic],u(x,t));  #1
sol:=pdsolve([pde, bc,ic],u(x,t)) assuming t>0; #2
sol:=pdsolve([pde, bc,ic],u(x,t)) assuming x>0; #3
sol:=pdsolve([pde, bc,ic],u(x,t)) assuming t>0,x>0;  #4
```

(1,2,3) above give same answer which is

but (4) gives

Tried random points and numerically they are the same (set the sum to n=100 to evaluate).

my question is why would adding no assuming, or adding t>0 on its own or adding x>0 on its own give same answer, but adding  t>0,x>0 at same time give such a different looking soution.

I typically adding such assumptions to be safe, but here it seems to had some side effect I have not noticed before.

```Physics:-Version();

10:41 hours, version in the MapleCloud: 265, version installed in this computer: not installed

kernelopts(version)
Maple 2018.2, X86 64 WINDOWS, Nov 16 2018, Build ID 1362973
```

## Can't solve ODE...

I try to solve ODE with conditions, but it give answer only without conditions:

SOT.mw

Thank you.

## How to rectify the error in the ODE problem....

Dear authors,
How to solve this ode problem.

In this problem the boundary condition is

Note: F=g in our problem.

eta approaches N.

Thank you.

Executing the entire worksheet several times I obtain random results for Threads:-Seq

 > restart;
 > N:=10^3; f:= (a,b) -> add(evalf(j), j=a..b);
 (1)
 > seq(f(k*N/4+1,(k+1)*N/4), k=0..3);
 (2)
 (3)
 (4)
 (5)
 >

## is possible to solve this pde via maple?...

is possible to solve this pde via maple?

 >
 >
 (1)
 >

## why convert(..,Int) does not work for invlaplace?...

convert(...,Int) in Maple 2018.2 works for fourier, invfourier, laplace, but does not work for invlaplace.

Why is that? Is there a workaround?

```expr:=fourier(f(x), x, w):
convert(expr,Int);
```

```expr:=invfourier(f(w), w, x):
convert(expr,Int);
```

```expr:=laplace(f(s),s,t):
convert(expr,Int)
```

```expr:=invlaplace(f(s),s,t):
convert(expr,Int)
```

Was expecting to see the Mellin's inverse formula.

Maple 2018.2 on windows 10

## How calculate the Skyrme of motion from the Lagran...

How can I calculate the Euler-Lagrange equation from the Lagrangian density from Gauged Baby Skyrme model in maple using the physics package? Here, the rules of the operation in the inner space are the same that of the vectors conventional: dot and cross products, etc...
Following below the Lagrangian density.

Errata:

Hello,

every time I input a formula I get:

Typesetting:-mparsed(x^2 +5 -2,x^2+3; "_noterminate")

I can't get rid of this error: this is very basic, what happened?

TIA, Roberto

## how i can Substituting......

i want to gain diff(p(t), t) and diff(q(t), t) and Jacobian matrix
according to the attached pdf file.

thanks

 >
 (1)
 >
 (2)
 >
 (3)
 >
 (4)
 >
 (5)
 >
 (6)
 >
 (7)
 >

## How do I run coding with goto on Maple? ...

Hi, I'm using Maple 2018 and I tried to run coding from https://www.maplesoft.com/applications/view.aspx?sid=4194&view=html

however, it said : unable to parse. I figured out that the problem maybe is in the if loop. though it seems perfectly fine, but it has some goto commands that i cannot search on maple website. does this mean that the goto cannot be used here and should be replaced? if yes, then how?

i am still learning on how to use maple. any help would be much appreciated. thank you!

this is the coding for if loop:

label_7;

rv:=vector([p1(x1pt,x2pt),p2(x1pt,x2pt)]):

numgeval:=numgeval+1;

printf("%5d (%8.4f,%8.4f)",numIter,rv[1],rv[2]);

max:=n;

mg:=convert(sqrt(dotprod(rv,rv)),float);

printf("%12.4f",mg);

if(mg<tol or numIter>=max) then

goto(label_6);

else

numIter:=numIter+1;

fi;

v1:=x1pt+t*rv[1];

v2:=x2pt+t*rv[2];

newt:=evalf(subs({x1=v1,x2=v2},f1));

numfeval:=numfeval+1;

lam:=fsolve(diff(newt,t)=0,t,maxsols=1);

nv1:=evalf(subs({t=lam},v1));

nv2:=evalf(subs({t=lam},v2));

printf(" (%8.4f,%8.4f)%13.4f\n",x1pt,x2pt,lam);

x1pt:=nv1;

x2pt:=nv2;

goto(label_7);

label_6;

printf("\n\n-----------------------------------------");

printf("---------------------------------------------");

printf("\n\n Approximate Solution: ");

printf(" (%8.4f,%8.4f)\n",x1pt,x2pt);

Fvalue:=evalf(subs(x1=x1pt,x2=x2pt,f));

printf(" Maximum Functional Value: ");

printf("%21.4f",Fvalue);

printf("%22d",numgeval);

printf("\n Number function evaluations:");

printf("%22d",numfeval);

printf("\n\n-----------------------------------------");

printf("---------------------------------------------");

end:

## simplify an equation ...

hi.

According to the fhgure attaceh how i can gain the equation (2-27) . I write the equation (2-26) in maple but I couldnot to gain that result.

If possible to reach equation via maple?

Thanks

 (1)

 (2)

## pdsolve does not work...

why pdsolve does not work?

Q and alpha are constant. I want to find f(x,y).

Thanks

 (1)

 (2)

## Statistics:-Mean fails...

Hi,

I submit you this strange result:
for somenumerical  values of a, b, c  (a, b, c real and b > a), Maple 2018 is not able to compute the mean of
c*U where U is a Uniform random variable with support [a, b].

 > restart:
 > with(Statistics):
 > interface(version);
 (1)
 > z := .4070716688*RandomVariable(Uniform(0.12-0.02*0.12, 0.12+0.02*0.12)); Mean(z);
 > z := .4070716688*RandomVariable(Uniform(a, b)); Mean(z); subs({a=0.12-0.02*0.12, b=0.12+0.02*0.12}, %);
 (2)
 >

PLEASE: Maple still fails if I replace  a = 0.12 -0.02*0.12 by its value 0.1174
and b = 0.12+0.02*0.12 by its value 0.1224

This is incomprehensible and could hide a more profound problem.

## Expressions in procedures acting unevaluated when ...

```restart: