## getting line numbers for mint messages?...

mint gives messages such as

These local variables were assigned a value, but otherwise unused:  i

even though it does say what proc this is in, it does not give the line number where such problem is at.

So if a proc is long, say 100 or 200 lines, it is very hard to find the location of such things visually all the time.  Searching for "i" is not too useful.

Tried different options but there are no line numbers given for these messages.

"C:\Program Files\Maple 2022\bin.X86_64_WINDOWS\mint.exe" -i 2  foo.mpl

Are there other things to try? I think mint should be improved and list line number for each warning and message such as also These local variables were assigned a value, but otherwise unused:

It should give lines numbers where this happened to make it easier to locate in the editor.

Maple 2022.1 windows 10.

## How do I solve a weakly singular and singular int...

Assalomu alaykum.

I couldn't solve this integral equation but other online calculator done it. How to calculate in Maple. I use Maple 2021.

L[1, 0] := t + Pi*t/2 + (4*t^(3/2))/3;
L[2, 0] := t^(1/2) + Pi*t/4;
L := int((L[1, 0] + L[2, 0])/(x - t)^(1/2), t = 0 .. x);

## How to integrate this equation?...

Is it possible to integrate eq (1) in such a way that the final result will be of 1st order differential equation?

 >
 >
 >
 (1)
 >
 (2)

## The exact same input (i would think), but totally ...

Hello everybody,

Something totaly unexpected came by, and i was wondering: how could this be? Im putting what would be the same input in, and yet, its not giving me the results i was expecting for the input i had itterated.

While one solution would be really cumbersome and slow, it tried to do it faster. It worked before, but now i hit a wall. No clue why, but it seems to be so.

Here is the example:

 >
 >
 (1)
 >
 >
 >
 (2)
 >
 (3)
 >

Thank you!

Greetings,

The Function

## Non-trivial solution to differential equation...

How can one ask Maple 2022 to give the non-trivial solution to this differential equation

V’(t)=-2*V(t)^(2/3) with V(5)=0 ??

Have tried dsolve({V’(t)=-2*V(t)^(2/3),V(5)=0}). But that only gives me the trivial solution V(t)=0.

## How can a Doyle spiral be coded in Maple?...

The wikipedia website below contains a general description of Doyle spirals but not the full mathematics of their construction.

https://en.wikipedia.org/wiki/Doyle_spiral

The website below apparently contains the html coding for an animated display of Doyle spirals, but I am not familiar with this coding language.

https://bl.ocks.org/robinhouston/6096950

Can anyone direct me to 1) the complete mathematics describing the construction of a Doyle spiral and/or

2) a Maple worksheet which codes for the display of a Doyle spiral?

## mint message little not clear. Local variable not ...

Do you think the following messages  by mint should have been the same? this is just some made up example with no purpose other than to show the messages.

```foo:=proc(x)
local z,a:=1,la;
patmatch(x,a*x,'la');
map(z->assign(z),la);
end proc;

boo:=proc(y,x)
local Z,RHS;
RHS:=y(x);
subs(y(x)=Z,RHS);
end proc;```

Looking at the above, foo() has z used but never assigned a value, right?  And in boo(), Z is used but never assigned a value.

but mint gives slighlty different message

```"C:\Program Files\Maple 2022\bin.X86_64_WINDOWS\mint.exe" -i 2  A.mpl

Procedure foo( x ) on lines 2 to 6
These local variables were never used:  z

Procedure boo( y, x ) on lines 8 to 12
These local variables were used but never assigned a value:  Z
```

Should not these two messages have been the same?

## Any way to increase the number in the list of Rece...

Recent documents shows the last 10 files you've opened.  Any way to increase that to something like 20 or 50?

## 3 unknowns, 1 matrix, and 1 variable ...

Dear everyone,

Ive been looking at this problem ive got, but i cant find out what would make it work. I can put numbers in a matrix, i can solve 3 unknowns with 3 equations. But now there is a variable, and the variable causes the solution to give either: 1 solution, no solution, or more than one solution.

I can "brush the matrix" as they say it in Dutch, but im learning Maple so it can go a lot faster than manual labor. So is there a way to do it with Maple?

Figure 4.1 gives from left to right: 1 solution, no solution, and an indefinite amount of solutions.

Questions: For what value of p, a. gives 1 solution? b. gives no solution? c. gives more than 1 solution?

Now i got Maple to tell me how much p x1, x2, and x3 was, but its not bringing me anywhere to where i can get to a solution.

A manual method is given in this example. Manual is way way to slow for what i need to achieve, ive got some large big books with mechanics, dynamics, statics, fluid mechanics, concrete calcutions, chemistry etc. waiting for me. I can never achieve that manually in the same time as i could do it with maple. :S

 > #example of how to do a solve of a matrix with 3 variables:
 >
 (1)
 >
 (2)
 > #now the example number 15
 >
 (3)
 >
 (4)
 >

Thank you!

Greetings,

The Function

## The floor brackets are not displayed on plots -- w...

Hello.

If I input 'floor(5.5)' in Maple 2018 I get the expected \lfloor 5.5 \rfloor thing.  I mean, with the special brackets typical for the floor notation.

However, if I try to place the floor notation onto a plot I get literally the string "floor(5.5)".  As in

textplot([2, 2, 'floor(5.5)'])

The ' ' quotation marks ensure the delayed evaluation but I do not get the floor parentheses!

Interestingly,

textplot([2, 2, 'sqrt(5.5)'])

outputs the radical notation as expected.

How come I cannot produce a plot with the floor brackets notation in it?

Thanks

Minko

## These names were used as global names but were not...

When running mint on a single .mpl file, I often get this warning

`These names were used as global names but were not declared:  main_module`

When having this code in the mpl file

`o:=Object(main_module:-person_type);`

The problem is that main_module is a module that lives in separate mpl file.

It is a differerent module in its own ,mpl file which inside it contains the person_type definition. (another module of type object)

I know I can ignore this. And have been. But my question is: how does one "declare" main_module inside this mpl file to avoid getting this warning message? Since main_module is its own module in separate file. I do not understand what does it mean to  "declare" it.

Here is the full code

```A:=module()
export boo:=proc()
local o;
o:=Object(main_module:-person_type);
o:-foo();
end proc;
end module;```

And here is the command I used

`"C:\Program Files\Maple 2022\bin.X86_64_WINDOWS\mint.exe" -i 2 A.mpl`

Gives

Nested Procedure boo() on lines 2 to 6
These names were used as global names but were not declared:  main_module

Later on, when I build my .mla library, all these modules are put inside the library. So it is not an issue when running the code, but I'd like to see if it is possible to add something to A.mpl to tell Maple that main_module is separate module and not to worry about it.

## display log function...

Hi,

How to keep the log function displayed in base b in my table, not its converted form in ln  ( f3 and f4 in my file) ?

Thanks.

DisplayLogQCM.mw

## CodeGeneration: How to force double?...

I have started to use CodeGeneration[C] instead of codegen[C] (depreciated). In the attached example not all variables and parameters of a C function are declared as double, although the default value is double.

If this is by design:

How can I force double without going back to codegen[C] or manual declaration of each item?

C_code_generation_with_CodeGeneration.mw

## Calling Procedure from Procedure...

Pls see below worksheet. I want to compute the maximum number that appears in the Collatz series when starting with several starting numbers.

I calculate the maximum number appearing when starting with a specific number in procedure collatz. Then I want to calculate the maximum number appearing when calling different starting numbers in procedure collatz_max by calling collatz several times - collatz_max does not yet contain the handing of the results from collatz as the below error appears. If I only call collatz in collatz_max it return the right value, but in the loop or if I assign collatz to a variable within procedure collatz_max, calling collatz returns () as a result.

What do I do wrong?

Thanks for helping,

Oliver

Collatz.mws

 First 184 185 186 187 188 189 190 Last Page 186 of 2338
﻿