LMSouq
moodle-core Open

Does the Maxima language have a map/dictionary data structure and if it does, how is one initiated and how are its values and keys accessed?

SE
sesodesa
1 month ago
3 views
Problem Description
SourceForge is currently down, so I can't access Maxima's documentation and came here with this question. I'm building a question in Moodle that would benefit from this container type. I've tried optionmap : {"key1" : value1, "key2" : value2}; minmaxlist : [[max(resurssiMap["key1"],resurssiMap["key2"]),true,<key of maximum value>], [min(resurssiMap["key1"],resurssiMap["key2"]),false,<key of minimum value>]]; but this produces the error `assignment: cannot assign to key1`. Is there a way to fix this. In the code sample above, I would like to insert the keys of the maximum and minimum values (which I won't know until the execution of the `max()`- and `min()`-functions) the their respective places as indicated, which I don't know how to do either. Any ideas on how to achieve this?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base