Automatic Fix of Type Errors

Some of the type errors that can occur when constructing expressions are fixed automatically. The most common of these errors involve the variations for the mulplication objects.

Some type errors that can occur in expressions are normally fixed automatically. The automatic type correction is used when expressions are edited using the autocomplete popup or when expressions are edited using copy and paste.

The expressions are fixed by calling the FixTypeErrors function on the expression that is being edited.

An example of the kinds of expressions that will be fixed automatically is the multiply objects. If you construct the expression:

a*[]

and then put a vector in the empty box using either cut and paste or the autocomplete popup, the Mult object will be changed to a MultScalar object automatically.