C Operators

SymbolicC supports the various types of C operators. These are described in this section.

Infix Operators

First, you need to load the package.

In[1]:=
Click for copyable input

The following shows how to output to get infix multiplication.

In[11]:=
Click for copyable input
Out[11]=

Parentheses are added as necessary.

In[12]:=
Click for copyable input
Out[12]=

Note that you can force the addition of extra parentheses using CParentheses.

In[13]:=
Click for copyable input
Out[13]=

Assignment

First, you need to load the package.

In[1]:=
Click for copyable input

This shows the special representation for the assignment.

In[2]:=
Click for copyable input
Out[2]=

You can also give an operator to use for the assignment.

In[3]:=
Click for copyable input
Out[3]=
New to Mathematica? Find your learning path »
Have a question? Ask support »