Member Avatar

I am having trouble with an OZ Program (Mozart Programming). I have a code to find the maximum element in a list. The code I have so far is: local fun {MaxList L1} case L1 of nil then 0 [] X|Xr then if {MaxList Xr}>X then {MaxList Xr} else X end end end in {Browse {MaxList [3 ~2 0 4 5 1]}} end This code will return '5', the max element However, I am trying to write the code so that it will return the two largest elements in descending order. So first '5', then '4'. I'm just not sure …

0
8
Member Avatar

Hey guys, does anyone know how to do this? Here is my current code that will not work. I have tried everything that I know how to make this work to no avail. This is under form1_load. Any help would be awesome. Thanks in advance.

0
18
Member Avatar

It solves quadratic equations, for both real and complex roots. Please answer the pol to let me know how I'm doing. This function just needs the python 3.x environment, no modules needed.

Member Avatar
0
13

The End.