C_R

3762 Reputation

21 Badges

6 years, 235 days

MaplePrimes Activity


These are replies submitted by C_R

Enter in 1-D input mode

`#mi("&D;")`

`#mi("&D;")`

(1)

Select all of the above input and copy it into a documentblock (or 2-D Math after a Maple prompt)

`#mi("&D;")`

`#mi("&D;")`

(2)

Select the above D of the input and drag it into the favorites.

Test: Insert from the favorites

`#mi("&D;")`

`#mi("&D;")`

(3)

lprint(%)

`#mi("&D;")`

 

NULL

It is also possible to make `&D;`atomic and move it to the favorites but this prints `D` in the input when inserted from the favorites.

Download Italic_D_in_the_favorites.mw

The videos are good.

One of the things I had to learn with Maple was the concept of evaluation. Without knowing the meaning (in the Maple language context) the correct interpretation of many Maple help pages is not possible.  For computer scientists evaluation is probably something natural to talk about. Appart from Maple I never have to use the word evaluation. For most programming task the knowledge of evaluation is not needed (although it happens all the time under the hood); assignment is more important.

In your last video, you demonstrate that a previously assinged name leads to an error in a subsequent statement. This is only because Maples parser is not smart enough to understand the intention of the user.

Also "evaluation to a name" is something most users that have started programming with other languages do not know because ordinary languages do not use names the way Maple does. Such languages have variables where a value can be assinged to. Without an assignement such variables are useless which is not the case in Maple.

For these reasons I think a video about evaluation would make sense.

RootOf is annother powerful "particularity" of Maple also worth explaing.

@acer

Comments are always welcome. I think I got your point, which does not mean that I will always express myself correctly in the future.

As the term function, the terms object and operator can have different meanings. Since computer science and math have so much in common it is challenging not to mix things up.

I still see the need to clarify a few details which are related but become more and more off the topic ()().

Thank you again for the clarifications.

@acer 

This explains one thing I noticed recently

Your clarification of `+` on its own is nothing more than a name (or the name of a function - I could have worked this out myself) now fits perfectly to eval (and "evaluation to a name") in the word evalapply. It also fits nicely to “functional programming” that applies functions in the first pair of parentheses to arguments in the second pair of parentheses.

What does not fit perfectly, IMO, is the use of terms in the examples/functionaloperators help page. It would make sense to rework this page and update with links to ?evalapply and ?function.

Prefix and infix variants of the same operation can make it more difficult to describe, interpret, and understand. That is a dilemma of a rich language. On the other hand, it's less fun when languages are reduced to a minimum. 

examples_functional_operators_comments.mw

operators_functional_commented.mw

@Carl Love 

I was not aware of evalapply. The help=page clarifies a lot (and is unusual since it explains in the Description section an example of the Example section).

The types in, for example, (`+` + `+`) are not all the same and make unambiguous processing possible - whatever the exact rules are.

Thank you for filling one of my gaps!

@dharr 

Converting to 1-D seems to remove hidden code that cannot be visualised by a Maple command.

I had this in other instances and sometimes only retyping or deleting of document blocks helps.

@aroche 

After installing Maple 2026.1 and uninstalling SupportTools I did


then I got the same crash on computer "A" and the package was not installed. 
I will do this on computer "B" when I find time and update here if computer "B" crashes as well.
If not let's make this a "cold case" unless we can relate this to any other strange behavior of the UI on computer "A".

This works now with the new release

@ianmccr 

This sounds more like what the user @nm experienced here. Maybe he can tell more.

If it is file related I would try to isolate the passages that cause the block. Simply delete pats of the document and try uploading again. 

 

@acer 

File replaced

@acer

I corrected the wording and deleted my misleading comment regarding function names combined with operators within the first set of parentheses. With function name I mean f in the function expression f(x) as described in ?function. This page describes function application but not constructs like (function_name operator function_name)(arg(s)) as in (sin + cos)(x). I only find "operators are distributive" in examples,functional. I cannot conclude from that with certanty what is meant by operators and if distributive (?Definition,distributivelaw) applies also for other "things" like -,*,=,^,... inside expr1 of (expr1)(expr2). In any case not all operators within expr1 lead to a distribution of the function application to the argument(s) in expr2. The logic behind does not seem to be descirbed in the help system and examples are missing.

One of the challenges for me was to understand the different meanings of operators, functions, function expressions and mathematical functions (which can be defined in Maple using a functional operator even though most of them are implemented as procedures).

I hope that this exchange describes at least the difficulties one can have learning Maple by using only the help system. AI might change this. As of today AI lacks the exactness of the help system and misses out on what made me courious about (expr1)(expr2) which was in the first place the arithmetic constructs in expr1 using only function names.

To conclude: I understand that ()() is not a special type for syntax. Function application was the help page I missed out (I doubt that the definitions would have been understandable back then).

For fun

@ianmccr 

I had temporary problem with similar messages. See here:

https://www.mapleprimes.com/questions/242099-Online-Helps-Error-Messages-Links-Blocked

They resolved without doing anything.

If your uploading problems depends on the file contents, that would be new. For this rason I was interested to learn at which stage of the uploding process the error message is issued. Was it at stage "2. click upload" or later.

For completeness:

The use of (expr1)(expr2) is also demonstrated in the examples of the function help page in the context of function application.

(sin, cos)(x);
                         sin(x), cos(x)

@sand15 

Within the same Maple 2026 session. My worksheet

restart

one := ``(1)

``(1)

(1)

" lprint(`%`)"

Error, Got internal error in Typesetting:-Parse:-Preprocess : "invalid subscript selector"

" lprint(`%`)"

 

lprint(``(1))

``(1)

 


lprint_ditto.mw

Your worksheet updated (entered by hand since copy-paste did not work) with the same statements does not show the error

restart

kernelopts(version)

`Maple 2026.0, X86 64 WINDOWS, Apr 28 2026, Build ID 2011354`

(1)

one := ``(1);

``(1)

(2)

lprint(%)

``(1)

 

lprint((2))

``(1)

 

lprint(one)

``(1)

 

one;
lprint('%')

``(1)

 

``(1)

 

one;
lprint(`%`)

``(1)

 

``(1)

 

 

``(1)

``(1)

(3)

lprint(%)

``(1)

 

one := ``(1)

``(1)

(4)

lprint(%)

``(1)

 

NULL

Download With_Maple_2015_loaded_with_Maple_2026.mw

@ianmccr 

At which point of the upload you get the SQL injection message? Is it at uploading or inserting?

Would it be possible to determine whether the Maple AI code or the ChatGPT code is responsible for this?

It should not be Maple AI because the inserted code edit regions cannot contain hidden code (I assume). If it turns out that third party AI code can inject hidden suspicous/malicious code, Maple users must be informed about this potential risk.

Have you tried an empty Maple file. Just to make sure that it is not a temorary fire wall issue.

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