530 Reputation

11 Badges

8 years, 182 days

MaplePrimes Activity

These are questions asked by sand15


When multiple request to DocumentTools:-Tabulate(...) are enclosed in the same group of commands (which typically happens when they are within a procedure), only the last one is displayed.
Is it possible to overcome this behaviour?

Thanks in advance

I discovered incidentally that the command  Matrix(3, 3, `-`) (the number 3 is purely illustrative) returned the same result than the command Matrix(3, 3, (i,j) -> i-j).
In the same way `+` realizes (i,j) -> i+j), `*` realizes (i,j) -> i*j), ...

More surprisingly `.` realizes (i,j) -> i*j while I'm in worksheet mode, with "old" maple input style, and that the command 2.3 does not answer 6 but concatenates 2 and 3.

Is this a known behaviour or an undocumented feature?







In order to improve the rendering of the table returned by DocumentTools:-Tabulate, I would have like it to contain the mathematical sign for infinity instead of the word infinity itself.

a := infinity:
print(a);                      # what I would like to obtain
DocumentTools:-Tabulate([a]);  # contains the word "infinity"

Is it possible to fix this?

PS: Avoid spending too much time on it because it's only cosmetics

I face a problem using Tolerances:-NominalValue and Tolerances:-ToleranceValue on a quantity constructed from add.


x := 10 &+-1:
y := 20 &+- 2:
z := 3*x+2*y;
# returns 70 as expected
ToleranceValue(z);   # returns 7 as expected

Now I define another quantity Z this way:

Z := add([3, 2] *~ [x, y]);
(or equivalently add(ListOfCoeffs[k]*ListOfVars[k], k=1..K) where ListOfCoeffs and ListOfVars are previously defined adhoc lists)

Both NominalValue(Z) and ToleranceValue(Z) return an error.
PS: already (and this probably explains that) Z does not appear as 70 +/- 7 but as 3*Interval(...)+2*Interval(...) (lprint confirmed)

How can I obtain NominalValue(Z) and ToleranceValue(Z) when Z comes from 'add' constructor?


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].





`Standard Worksheet Interface, Maple 2018.0, Windows 7, March 10 2018 Build ID 1298750`


z := .4070716688*RandomVariable(Uniform(0.12-0.02*0.12, 0.12+0.02*0.12));



Error, (in Statistics:-Mean) the expression does not have a taylor expansion at t = 0


z := .4070716688*RandomVariable(Uniform(a, b));
subs({a=0.12-0.02*0.12, b=0.12+0.02*0.12}, %);










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.

4 5 6 7 8 9 10 Last Page 6 of 20