Jean-Baptiste R

25 Reputation

One Badge

0 years, 169 days

MaplePrimes Activity


These are questions asked by Jean-Baptiste R

I would like to "run" or execute parts of my code that I put in a same section. Unfortunately, selecting "Execute" when right-clicking on a section does nothing...

Here's a very simple example, working as intended:

 

 

Now, if I try to use the exception indexing function:

 

 

We can notice that b[1] isn't using exception anymore (as if the fourth input overwrote the second one) and that b[1][2] isn't linked to the value "two". However, if I define the tables first, I get the expected result:

 

 

Why does the exception indexing function prevent me from getting an existing table entry in the second case?

Page 1 of 1