Code Generation - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim

Code Generation

The CodeGeneration package offers new support for translating Maple code to the Swift programming language.


With CodeGeneration[Swift], you can translate expressions to code fragments:



cg = sqrt(a * a + b * b + c * c)


You can also translate procedures and larger programs.


func cg0 (m: Int32) -> Int32 {
  var r: Int32
  r = 0
  for i in 1...m
    r = r + i