C_R

3412 Reputation

21 Badges

5 years, 314 days

MaplePrimes Activity


These are questions asked by C_R

I cannot find an explanation why a boolean evaluation with higher Digits is not the same

NULL

restart;interface(version);

`Standard Worksheet Interface, Maple 2024.1, Windows 10, June 25 2024 Build ID 1835466`

(1)

Digits:=10;
is(ln(.1e11*abs(-.304805898398896+1.*RealRange(.304805898398895,.304805898398897)))/ln(10) < -6);
Digits:=30;
is(ln(.1e11*abs(-.304805898398896+1.*RealRange(.304805898398895,.304805898398897)))/ln(10) < -6)

10

 

true

 

30

 

true

(2)

Digits:=10;
ln(0.1*10^11*abs(-0.304805898398896 + 1.*RealRange(0.304805898398895, 0.304805898398897)))/ln(10) < -6;
is(%);
is(ln(0.1*10^11*abs(-0.304805898398896 + 1.*RealRange(0.304805898398895, 0.304805898398897)))/ln(10) < -6);

10

 

ln(0.1000000000e11*abs(-.304805898398896+1.*RealRange(.304805898398895, .304805898398897)))/ln(10) < -6

 

true

 

true

(3)

Digits := 30;
ln(0.1*10^11*abs(-0.304805898398896 + 1.*RealRange(0.304805898398895, 0.304805898398897)))/ln(10) < -6;
is(%);
is(ln(0.1*10^11*abs(-0.304805898398896 + 1.*RealRange(0.304805898398895, 0.304805898398897)))/ln(10) < -6);

30

 

ln(10000000000.0*abs(-.304805898398896+1.*RealRange(.304805898398895, .304805898398897)))/ln(10) < -6

 

false

 

false

(4)

.1e11

0.1e11

(5)

0.1*10^11

10000000000.0

(6)

NULL

RealRange seems to be evaluated differently.
Any explanation for that?


(expression extracted from an error message)

 

Download eval_of_range_in_ln.mw

 

 

I was about to review a piece of code which is the "main procedure" of a worksheet (as one would say in other languages).

What I mean by that are the top level code statements of a Maple worksheet which are not part of procedures. For the code example I can easily put everything into a procedure and invoke the Maple debugger. For larger worksheets this becomes complicated.

For this reason I was wondering whether the debugger can also be started for a complete document.

For a month I did do not get email notfications.

I checked spam folders, settings and email filters.

Is it only me?

Why does dsolve not call odetest by default before a solution is returned?

I mean, why do I have test each result separately. dsolve could have an odetest option (default=true).

In case of discrepancies dsolve could inform the user and suggest to call dsolve with odetest=false and run odetest separately to analyse the problem.

Set up this way, dsolve would never return potentially incorrect solutions that do not pass odetest.

I cannot find anything in the documentation that could explain the below.

NULL

According to ?name  the character ? can be used in a name with the exception of beeing the first character.
Example:

abc?:=2;
abc?

2

 

2

(1)


Reentering the name in 2D

"abc"?""

abc

(2)

In 2D the nane "abc"?"" does not seem to exist.

Trying now as above

"abc"?:=a:"  abc"?""

abc^2

(3)

returns an unexpected output.
Trying

"ab"?c:=b;"  "

ab

(4)

"a"?b:=c""

a

(5)

seems to cut of everything that follows the question mark (including the question mark).
This could explain the output (3) as having been parsed as abc*abc.

``


The variable palette only lists the name entered in 1D.

What could explain the difference between 1D and 2D when "?" is used in a name.

Download Questionmark_in_2D_names.mw

First 10 11 12 13 14 15 16 Last Page 12 of 44