John Fredsted

2238 Reputation

15 Badges

20 years, 164 days

MaplePrimes Activity


These are Posts that have been published by John Fredsted

Should this post be allowed in this forum?
I wonder why
a,b := NULL,NULL:
does not work, leading to an error of ambiguous multiple assignment, whereas
a := NULL:
b := NULL:
does work. Nothing critical of course, just mysterious, or what?
Concerning custom indexing functions it seems that there is nothing analogous to TypeTools:-AddType(...), with which you can define new types as
TypeTools:-AddType(name,handler);
where, most importantly, name may be a variable. How can something similar (i.e., the name being given by a variable) be accomplished for new indexing functions when the only available option for defining those seems to be something like
`index/name` := proc()
   # something
end proc;
where name cannot be a variable?
The tabbing nuisance, as earlier reported, is driving me crazy; it keeps popping up all the time. Not only when copy-pasting lines of codes to some new execution group, but also when saving, closing, and reopening the document. Please, help me by either telling me if you experience the same nuisances, or, better, how to circumvent these.
In Maple 11 I use 'Maple notation' (as opposed to the new option '2-D Math Notation'), partly because I'm used to that from Maple 9.5, and partly because only in 'Maple notation' tabbing can be used (to format longer codes nicely). But it seems to me that Maple 11 cannot get the formatting correctly. An example: 1. Type the following code (where the second line is tab-indented):
for a from 1 to 4 do
	print (a):
end do:
2. Copy-paste this code to a new execution group. Now the problem is the following: Pressing the End-button on the keyboard, the end of the print-line (in the copy-pasted code) cannot be reached. Only after having manually removed the tab-indentation and reinserted it again can the end of the line be reached.
First 8 9 10 11 12 Page 10 of 12