Question: Problem with an if/then control structure

I am working on a project in Maple 10 that was originally designed for Maple 9.5. I am trying to define the weighting function wt. The problem is that the instructions say to type the following command line: wt := n -> if n=0 then 1 elif n=NInts then 1 else 2 end if; However, when I do, the following error message shows up with the phrase "n -> if" highlighted in a red box. "Error, invalid inline function wt := n ->if n=0 then 1 elif n=NInts then 1 else 2 end if;" Thank you for your help. Adam
Please Wait...