C_R

4059 Reputation

21 Badges

7 years, 50 days

MaplePrimes Activity


These are questions asked by C_R

Why no parentheses around "%" are needed here

cos^2 + sin^2 = 1;
%(x);
                           2      2    
                        cos  + sin  = 1

                           2         2    
                     cos(x)  + sin(x)  = 1

as they are required here (to group terms)
 

(cos^2 + sin^2 = 1)(x);
                           2         2    
                     cos(x)  + sin(x)  = 1

Is it because % (?ditto) is an operator or because of an evaluation rule?

I know the opposite: Maple treats (sin)(x) the same as sin(x), i.e. removes the parentheses.  
I also know that Maple has special evaluation rules for procedures (see ?last_name_eval) but the
"operator expression" cos^2 + sin^2 = 1 inside the parentheses is of type equation and not of type function/procedure.

I assume that % reevaluates a previously computed result stored in the kernel and not in the user interface but maybe I am wrong here. If equation labels are used instead of %, also no parentheses are needed, but in this case the equation label refers to output stored at the level of the user interface.

I could not identify a menu item in the ribbon interface under "Insert" (where it was with the former interface).

Asking the small model (without including a worksheet)

what does x || (a, b, c) := y =~ x ^~ (1, 2, 3)

throws this error

Is that error message reproducible on other installations? Should be. 
Warning: The same question to the large model ate up 100000 credits. I added two more questions about operator precedence:

Reminds me of playing pinball when I was young. Either it tilts or you run out of money pretty quickly ;-)

Joking asside, any suggestions to improve my prompting to make the small model produce a correct answer?

On my installations I can neither convert nor copy/paste code with comments from 2D-Math to 1D without loosing the comments.
Also pasting to Word removes the comments.

Is that a known behaviour? Any workarounds?

This input

" #` Parameters #`  "(* *)"  H = 0.01; #` height in meter`  R := 0.006*3/2; #` Radius in m`  k := 0.540; #` conductivity in W/m/K`  rho := 1060.0; #` density in kg/m^3`"

1060.0

(1)

copy and paste here

> 

H = 0.01;
R := 0.006*3/2;
k := 0.540;
rho := 1060.0;

H = 0.1e-1

 

0.9000000000e-2

 

.540

 

1060.0

(2)

or here

H = 0.01;

Download copy_comments.mw

Sometimes I miss appropriate tags. How and to whom can I make a suggestion?

1 2 3 4 5 6 7 Last Page 1 of 57