Module ImportFrom alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias alias alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias Assign TupleStore NameStore NameStore NameStore Call NameLoad Str FunctionDef arguments args defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return BinOpMod Str Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list Assert CompareEq Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad Call NameLoad NameLoad Str Assert CompareEq Call NameLoad BinOpPow NameLoad Num Str Assert CompareEq Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad BinOpPow NameLoad Num Str Assert CompareEq Call NameLoad BinOpPow NameLoad BinOpPow NameLoad Num Str Assign NameStore Call NameLoad Str Call NameLoad NameLoad BinOpMult Num NameLoad Assert CompareEq Call NameLoad BinOpDiv BinOpDiv Num BinOpPow BinOpMult Call NameLoad NameLoad Num BinOpSub NameLoad BinOpPow NameLoad NameLoad BinOpAdd BinOpPow NameLoad Num NameLoad Str Assert CompareEq Call NameLoad BinOpPow NameLoad Num Str Assert CompareEq Call NameLoad BinOpPow NameLoad Call NameLoad Num Num Str Assign NameStore ListLoad TupleLoad Lambda arguments args NameParam NameParam defaults AttributeLoad NameLoad attr Str TupleLoad Lambda arguments args NameParam NameParam defaults UnaryOpNot AttributeLoad NameLoad attr Str Assert CompareEq Call NameLoad BinOpPow NameLoad Num keyword Dict Str NameLoad Str Assert CompareEq Call NameLoad BinOpPow NameLoad Num keyword Dict Str NameLoad Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad Call NameLoad Num Str Assert CompareEq Call NameLoad NameLoad Str Assert CompareEq Call NameLoad NameLoad Str Assert CompareEq Call NameLoad UnaryOpUSub NameLoad Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad BinOpMult Num NameLoad Str Assert CompareEq Call NameLoad BinOpMult Num NameLoad Str Assert CompareEq Call NameLoad BinOpMult Num NameLoad Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad Call NameLoad Num Num Str Assert CompareEq Call NameLoad Call NameLoad Num Num Str Assert CompareEq Call NameLoad Call NameLoad Num Num Str Assert CompareEq Call NameLoad Call NameLoad Num Num Str Assert CompareEq Call NameLoad BinOpAdd NameLoad Call NameLoad Num Num Str Assert CompareEq Call NameLoad BinOpMult Call NameLoad Num Num NameLoad Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad Call NameLoad Num Str Assert CompareEq Call NameLoad Call NameLoad Num Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad BinOpPow Call NameLoad NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Call NameLoad NameLoad BinOpMult Num NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad Str Assign NameStore Call NameLoad Str Call NameLoad NameLoad BinOpDiv BinOpMult Num NameLoad NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad BinOpMod Str Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Call NameLoad NameLoad BinOpMult BinOpMult NameLoad BinOpAdd Num NameLoad BinOpAdd Num NameLoad Assert CompareEq Call NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad keyword SubscriptLoad NameLoad Index NameLoad Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad Call NameLoad NameLoad Str Assert CompareEq Call NameLoad Call NameLoad NameLoad Str Assert CompareEq Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str keyword NameLoad Assign NameStore Dict Str Str Str ListLoad TupleLoad Lambda arguments args NameParam defaults UnaryOpNot AttributeLoad NameLoad attr Str TupleLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Str Assert CompareEq Call NameLoad Call NameLoad NameLoad keyword NameLoad Str Assert CompareEq Call NameLoad Call NameLoad NameLoad keyword NameLoad Str Assert CompareEq Call NameLoad Call NameLoad NameLoad keyword NameLoad Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad BinOpBitAnd NameLoad NameLoad Str Assert CompareEq Call NameLoad BinOpBitOr NameLoad NameLoad Str Assert CompareEq Call NameLoad UnaryOpInvert NameLoad Str Assert CompareEq Call NameLoad BinOpBitAnd BinOpBitAnd NameLoad NameLoad NameLoad Str Assert CompareEq Call NameLoad BinOpBitOr BinOpBitOr NameLoad NameLoad NameLoad Str Assert CompareEq Call NameLoad BinOpBitOr BinOpBitAnd NameLoad NameLoad NameLoad Str Assert CompareEq Call NameLoad BinOpBitAnd BinOpBitOr NameLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad TupleLoad NameLoad CompareLt NameLoad Num TupleLoad BinOpPow NameLoad Num NameLoad Assert CompareEq Call NameLoad NameLoad Str Assert CompareEq Call NameLoad NameLoad keyword Str Str Assign NameStore Call NameLoad TupleLoad NameLoad CompareLt NameLoad Num TupleLoad BinOpAdd NameLoad Num CompareLt NameLoad Num TupleLoad BinOpPow NameLoad Num NameLoad Assert CompareEq Call NameLoad NameLoad Str Assert CompareEq Call NameLoad NameLoad keyword Str Str Assign NameStore Call NameLoad TupleLoad NameLoad CompareLt NameLoad Num TupleLoad BinOpPow NameLoad Num CompareGt NameLoad Num TupleLoad Call NameLoad NameLoad CompareGt NameLoad Num Expr Call NameLoad NameLoad Lambda arguments args defaults Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad BinOpMult Num Call NameLoad TupleLoad NameLoad CompareLt NameLoad Num TupleLoad BinOpAdd NameLoad Num CompareLt NameLoad Num TupleLoad BinOpPow NameLoad Num NameLoad Assert CompareEq NameLoad Str Assign NameStore BinOpSub BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpMult BinOpMult NameLoad NameLoad NameLoad BinOpPow NameLoad Num BinOpPow NameLoad Num Call NameLoad TupleLoad Num CompareLt NameLoad Num TupleLoad Num NameLoad Call NameLoad NameLoad Num Assert CompareEq Call NameLoad NameLoad Str Assert CompareEq Call NameLoad NameLoad keyword Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad CompareLt NameLoad Num NameLoad BinOpPow NameLoad Num Assert CompareEq Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad Lambda arguments args defaults Call NameLoad Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args defaults body ImportFrom alias alias ImportFrom alias Assign TupleStore NameStore NameStore NameStore Call NameLoad Str keyword NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad Call NameLoad Str NameLoad Call NameLoad Str NameLoad Call NameLoad Str NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore SubscriptLoad Call NameLoad Str Index NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad Call NameLoad Str Index TupleLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad BinOpMod Str BinOpAdd BinOpMult NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad Call NameLoad Str Index TupleLoad NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad BinOpMod Str BinOpAdd BinOpAdd BinOpMult BinOpMult NameLoad NameLoad NameLoad BinOpMult NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad Str keyword TupleLoad NameLoad Assign NameStore Call NameLoad Str keyword TupleLoad NameLoad Assign NameStore Call NameLoad Str keyword TupleLoad BinOpSub NameLoad Num Assign NameStore Call NameLoad Str BinOpSub NameLoad Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad BinOpDiv BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assert CompareEq NameLoad BinOpMod Str TupleLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore BinOpAdd BinOpMod Str BinOpAdd BinOpMult NameLoad NameLoad NameLoad Str Assign NameStore Call NameLoad BinOpMult SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad keyword SubscriptLoad NameLoad Index NameLoad Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad keyword SubscriptLoad NameLoad Index NameLoad Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias alias ImportFrom alias Assign TupleStore NameStore NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore BinOpAdd BinOpMod Str BinOpAdd BinOpMult NameLoad NameLoad NameLoad Str Assign NameStore Call NameLoad BinOpAdd BinOpAdd BinOpMult SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad keyword SubscriptLoad NameLoad Index NameLoad Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias alias ImportFrom alias Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore BinOpAdd BinOpMod Str TupleLoad BinOpAdd BinOpAdd BinOpMult BinOpMult NameLoad NameLoad NameLoad BinOpMult NameLoad NameLoad NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpMult BinOpMult BinOpMult NameLoad NameLoad NameLoad NameLoad BinOpMult BinOpMult NameLoad NameLoad NameLoad BinOpMult NameLoad NameLoad NameLoad Str Assign NameStore Call NameLoad BinOpMult SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad NameLoad keyword SubscriptLoad NameLoad Index NameLoad Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias alias ImportFrom alias Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore BinOpAdd BinOpMod Str TupleLoad BinOpAdd BinOpAdd BinOpAdd BinOpMult BinOpMult BinOpMult NameLoad NameLoad NameLoad NameLoad BinOpMult BinOpMult NameLoad NameLoad NameLoad BinOpMult NameLoad NameLoad NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpMult BinOpMult BinOpMult NameLoad NameLoad NameLoad NameLoad BinOpMult BinOpMult NameLoad NameLoad NameLoad BinOpMult NameLoad NameLoad NameLoad BinOpAdd BinOpAdd BinOpMult BinOpMult NameLoad NameLoad NameLoad BinOpMult NameLoad NameLoad NameLoad Str Assign NameStore Call NameLoad BinOpMult BinOpAdd SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad keyword SubscriptLoad NameLoad Index NameLoad Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias alias ImportFrom alias Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Str Assign NameStore BinOpAdd BinOpMod Str BinOpAdd BinOpAdd BinOpMult BinOpMult NameLoad NameLoad NameLoad BinOpMult NameLoad NameLoad NameLoad Str Assign NameStore BinOpAdd BinOpMod Str BinOpAdd BinOpMult NameLoad NameLoad NameLoad Str Assign NameStore BinOpAdd BinOpMod Str BinOpAdd BinOpMult NameLoad NameLoad NameLoad Str Assign NameStore Call NameLoad BinOpAdd BinOpAdd BinOpMult SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad BinOpMult SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad BinOpMult BinOpMult SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad keyword SubscriptLoad NameLoad Index NameLoad Assert BoolOpOr CompareEq NameLoad BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num CompareEq NameLoad BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num CompareEq NameLoad BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num CompareEq NameLoad BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num CompareEq NameLoad BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num CompareEq NameLoad BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad Call NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad keyword ListLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad ListLoad BinOpMult NameLoad NameLoad Call NameLoad TupleLoad BinOpAdd Num NameLoad CompareGt NameLoad Num TupleLoad NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad Str Num Num Assert CompareEq Call NameLoad NameLoad NameLoad Str Assign NameStore BinOpAdd BinOpAdd Call NameLoad TupleLoad BinOpMult Num SubscriptLoad NameLoad Index TupleLoad Num Num CompareGt NameLoad Num TupleLoad SubscriptLoad NameLoad Index TupleLoad Num Num NameLoad Call NameLoad SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Assert CompareEq Call NameLoad NameLoad Str Assign NameStore Call NameLoad Str Num Num Assign NameStore Call NameLoad Str Num Num Assign NameStore Call NameLoad ListLoad ListLoad Call NameLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num Call NameLoad SubscriptLoad NameLoad Index TupleLoad Num Num ListLoad BinOpAdd SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Num ListLoad BinOpDiv BinOpMult Num SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num BinOpAdd Call NameLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num Num Assert CompareEq Call NameLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad Str Assert CompareEq Call NameLoad BinOpPow NameLoad Num Str Assert CompareEq Call NameLoad BinOpMult NameLoad BinOpPow NameLoad Num keyword ListLoad NameLoad Str Assign NameStore Str Assert CompareEq Call NameLoad BinOpPow NameLoad Num keyword Str NameLoad With Call NameLoad NameLoad body Expr Call NameLoad BinOpPow NameLoad Num keyword NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpMult Call NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Str Assert CompareEq Call NameLoad NameLoad Str Str Assert CompareEq Call NameLoad BinOpAdd BinOpMult Call NameLoad BinOpAdd BinOpMult Num NameLoad BinOpPow NameLoad Num NameLoad BinOpPow NameLoad Num Str Assign NameStore Call NameLoad Call NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Str decorator_list
N/A sympy.core pi oo symbols Rational Integer GoldenRatio EulerGamma Catalan Lambda Dummy Eq sympy.functions Piecewise sin cos Abs exp ceiling sqrt gamma sign sympy.logic ITE sympy.utilities.pytest raises sympy.printing.ccode CCodePrinter sympy.utilities.lambdify implemented_function sympy.tensor IndexedBase Idx sympy.matrices Matrix MatrixSymbol sympy ccode N/A N/A x y z N/A symbols x,y,z test_printmethod N/A N/A N/A N/A fabs N/A Abs N/A _ccode N/A N/A self printer N/A N/A N/A N/A fabs(%s) N/A N/A printer _print N/A N/A self args N/A 0 N/A N/A N/A N/A N/A ccode N/A fabs x fabs(x) N/A test_ccode_sqrt N/A N/A N/A N/A N/A N/A N/A ccode N/A sqrt x sqrt(x) N/A N/A N/A ccode N/A x 0.5 sqrt(x) N/A N/A N/A ccode N/A sqrt x sqrt(x) N/A test_ccode_Pow N/A N/A N/A N/A N/A N/A N/A ccode N/A x 3 pow(x, 3) N/A N/A N/A ccode N/A x N/A y 3 pow(x, pow(y, 3)) N/A g N/A implemented_function g N/A Lambda x N/A 2 x N/A N/A N/A ccode N/A N/A 1 N/A N/A N/A g x 3.5 N/A x N/A y x N/A N/A x 2 y pow(3.5*2*x, -x + pow(y, x))/(pow(x, 2) + y) N/A N/A N/A ccode N/A x -1.0 1.0/x N/A N/A N/A ccode N/A x N/A Rational 2 3 pow(x, 2.0L/3.0L) N/A _cond_cfunc N/A N/A N/A N/A N/A base exp N/A N/A exp is_integer dpowi N/A N/A N/A N/A base exp N/A N/A N/A exp is_integer pow N/A N/A N/A ccode N/A x 3 user_functions N/A Pow _cond_cfunc dpowi(x, 3) N/A N/A N/A ccode N/A x 3.2 user_functions N/A Pow _cond_cfunc pow(x, 3.2) N/A test_ccode_constants_mathh N/A N/A N/A N/A N/A N/A N/A ccode N/A exp 1 M_E N/A N/A N/A ccode pi M_PI N/A N/A N/A ccode oo HUGE_VAL N/A N/A N/A ccode N/A oo -HUGE_VAL N/A test_ccode_constants_other N/A N/A N/A N/A N/A N/A N/A ccode N/A 2 GoldenRatio double const GoldenRatio = 1.61803398874989;
2*GoldenRatio N/A N/A N/A ccode N/A 2 Catalan double const Catalan = 0.915965594177219;
2*Catalan N/A N/A N/A ccode N/A 2 EulerGamma double const EulerGamma = 0.577215664901533;
2*EulerGamma N/A test_ccode_Rational N/A N/A N/A N/A N/A N/A N/A ccode N/A Rational 3 7 3.0L/7.0L N/A N/A N/A ccode N/A Rational 18 9 2 N/A N/A N/A ccode N/A Rational 3 -7 -3.0L/7.0L N/A N/A N/A ccode N/A Rational -3 -7 3.0L/7.0L N/A N/A N/A ccode N/A x N/A Rational 3 7 x + 3.0L/7.0L N/A N/A N/A ccode N/A N/A Rational 3 7 x (3.0L/7.0L)*x N/A test_ccode_Integer N/A N/A N/A N/A N/A N/A N/A ccode N/A Integer 67 67 N/A N/A N/A ccode N/A Integer -1 -1 N/A test_ccode_functions N/A N/A N/A N/A N/A N/A N/A ccode N/A N/A sin x N/A cos x pow(sin(x), cos(x)) N/A test_ccode_inline_function N/A N/A N/A N/A N/A x N/A symbols x N/A g N/A implemented_function g N/A Lambda x N/A 2 x N/A N/A N/A ccode N/A g x 2*x N/A g N/A implemented_function g N/A Lambda x N/A N/A 2 x Catalan N/A N/A N/A ccode N/A g x N/A double const Catalan = %s;
2*x/Catalan N/A N/A Catalan n N/A A N/A IndexedBase A N/A i N/A Idx i N/A symbols n integer True N/A g N/A implemented_function g N/A Lambda x N/A N/A x N/A 1 x N/A 2 x N/A N/A N/A ccode N/A g N/A A N/A i assign_to N/A A N/A i for (int i=0; i<n; i++){
   A[i] = (A[i] + 1)*(A[i] + 2)*A[i];
} N/A test_ccode_exceptions N/A N/A N/A N/A N/A N/A N/A ccode N/A ceiling x ceil(x) N/A N/A N/A ccode N/A Abs x fabs(x) N/A N/A N/A ccode N/A gamma x tgamma(x) N/A test_ccode_user_functions N/A N/A N/A N/A N/A x N/A symbols x integer False N/A n N/A symbols n integer True N/A custom_functions N/A ceiling Abs ceil N/A N/A N/A N/A N/A x N/A N/A N/A x is_integer fabs N/A N/A N/A N/A x N/A N/A x is_integer abs N/A N/A N/A ccode N/A ceiling x user_functions custom_functions ceil(x) N/A N/A N/A ccode N/A Abs x user_functions custom_functions fabs(x) N/A N/A N/A ccode N/A Abs n user_functions custom_functions abs(n) N/A test_ccode_boolean N/A N/A N/A N/A N/A N/A N/A ccode N/A x y x && y N/A N/A N/A ccode N/A x y x || y N/A N/A N/A ccode N/A x !x N/A N/A N/A ccode N/A N/A x y z x && y && z N/A N/A N/A ccode N/A N/A x y z x || y || z N/A N/A N/A ccode N/A N/A x y z z || x && y N/A N/A N/A ccode N/A N/A x y z z && (x || y) N/A test_ccode_Piecewise N/A N/A N/A N/A N/A expr N/A Piecewise N/A x N/A x 1 N/A N/A x 2 True N/A N/A N/A ccode expr ((x < 1) ? (
   x
)
: (
   pow(x, 2)
)) N/A N/A N/A ccode expr assign_to c if (x < 1) {
   c = x;
}
else {
   c = pow(x, 2);
} N/A expr N/A Piecewise N/A x N/A x 1 N/A N/A x 1 N/A x 2 N/A N/A x 2 True N/A N/A N/A ccode expr ((x < 1) ? (
   x
)
: ((x < 2) ? (
   x + 1
)
: (
   pow(x, 2)
))) N/A N/A N/A ccode expr assign_to c if (x < 1) {
   c = x;
}
else if (x < 2) {
   c = x + 1;
}
else {
   c = pow(x, 2);
} N/A expr N/A Piecewise N/A x N/A x 1 N/A N/A x 2 N/A x 1 N/A N/A sin x N/A x 0 N/A N/A raises ValueError N/A N/A N/A N/A N/A ccode expr N/A test_ccode_Piecewise_deep N/A N/A N/A N/A N/A p N/A ccode N/A 2 N/A Piecewise N/A x N/A x 1 N/A N/A x 1 N/A x 2 N/A N/A x 2 True N/A N/A p 2*((x < 1) ? (
   x
)
: ((x < 2) ? (
   x + 1
)
: (
   pow(x, 2)
))) N/A expr N/A N/A N/A N/A N/A N/A N/A x y z N/A x 2 N/A y 2 N/A Piecewise N/A 0 N/A x 0.5 N/A 1 True N/A cos z 1 N/A N/A N/A ccode expr pow(x, 2) + x*y*z + pow(y, 2) + ((x < 0.5) ? (
   0
)
: (
   1
)) + cos(z) - 1 N/A N/A N/A ccode expr assign_to c c = pow(x, 2) + x*y*z + pow(y, 2) + ((x < 0.5) ? (
   0
)
: (
   1
)) + cos(z) - 1; N/A test_ccode_ITE N/A N/A N/A N/A N/A expr N/A ITE N/A x 1 x N/A x 2 N/A N/A N/A ccode expr ((x < 1) ? (
   x
)
: (
   pow(x, 2)
)) N/A test_ccode_settings N/A N/A N/A N/A N/A N/A raises TypeError N/A N/A N/A N/A N/A ccode N/A sin x method garbage N/A test_ccode_Indexed N/A N/A N/A N/A sympy.tensor IndexedBase Idx sympy symbols N/A N/A n m o N/A symbols n m o integer True N/A N/A i j k N/A N/A Idx i n N/A Idx j m N/A Idx k o N/A p N/A CCodePrinter N/A N/A p _not_c N/A set N/A x N/A N/A IndexedBase x N/A j N/A N/A N/A N/A p _print_Indexed x x[j] N/A A N/A N/A IndexedBase A N/A N/A i j N/A N/A N/A N/A p _print_Indexed A N/A A[%s] N/A N/A m i j N/A B N/A N/A IndexedBase B N/A N/A i j k N/A N/A N/A N/A p _print_Indexed B N/A B[%s] N/A N/A N/A N/A i o m N/A j o k N/A N/A N/A p _not_c N/A set N/A test_ccode_Indexed_without_looking_for_contraction N/A N/A N/A N/A N/A len_y 5 N/A y N/A IndexedBase y shape N/A len_y N/A x N/A IndexedBase x shape N/A len_y N/A Dy N/A IndexedBase Dy shape N/A N/A len_y 1 N/A i N/A Idx i N/A len_y 1 N/A e N/A Eq N/A Dy N/A i N/A N/A N/A y N/A N/A i 1 N/A y N/A i N/A N/A x N/A N/A i 1 N/A x N/A i N/A code0 N/A ccode N/A e rhs assign_to N/A e lhs contract False N/A N/A code0 N/A Dy[i] = (y[%s] - y[i])/(x[%s] - x[i]); N/A N/A i 1 N/A i 1 N/A test_ccode_loops_matrix_vector N/A N/A N/A N/A N/A N/A n m N/A symbols n m integer True N/A A N/A IndexedBase A N/A x N/A IndexedBase x N/A y N/A IndexedBase y N/A i N/A Idx i m N/A j N/A Idx j n N/A s N/A N/A for (int i=0; i<m; i++){
   y[i] = 0;
}
for (int i=0; i<m; i++){
   for (int j=0; j<n; j++){
      y[i] = x[j]*A[%s] + y[i];
 N/A N/A i n j    }
} N/A c N/A ccode N/A N/A A N/A N/A i j N/A x N/A j assign_to N/A y N/A i N/A N/A c s N/A test_dummy_loops N/A N/A N/A N/A N/A N/A i m N/A symbols i m integer True cls Dummy N/A x N/A IndexedBase x N/A y N/A IndexedBase y N/A i N/A Idx i m N/A expected N/A for (int i_%(icount)i=0; i_%(icount)i<m_%(mcount)i; i_%(icount)i++){
   y[i_%(icount)i] = x[i_%(icount)i];
} N/A icount mcount N/A N/A i label dummy_index N/A m dummy_index N/A code N/A ccode N/A x N/A i assign_to N/A y N/A i N/A N/A code expected N/A test_ccode_loops_add N/A N/A N/A N/A sympy.tensor IndexedBase Idx sympy symbols N/A N/A n m N/A symbols n m integer True N/A A N/A IndexedBase A N/A x N/A IndexedBase x N/A y N/A IndexedBase y N/A z N/A IndexedBase z N/A i N/A Idx i m N/A j N/A Idx j n N/A s N/A N/A for (int i=0; i<m; i++){
   y[i] = x[i] + z[i];
}
for (int i=0; i<m; i++){
   for (int j=0; j<n; j++){
      y[i] = x[j]*A[%s] + y[i];
 N/A N/A i n j    }
} N/A c N/A ccode N/A N/A N/A N/A A N/A N/A i j N/A x N/A j N/A x N/A i N/A z N/A i assign_to N/A y N/A i N/A N/A c s N/A test_ccode_loops_multiple_contractions N/A N/A N/A N/A sympy.tensor IndexedBase Idx sympy symbols N/A N/A n m o p N/A symbols n m o p integer True N/A a N/A IndexedBase a N/A b N/A IndexedBase b N/A y N/A IndexedBase y N/A i N/A Idx i m N/A j N/A Idx j n N/A k N/A Idx k o N/A l N/A Idx l p N/A s N/A N/A for (int i=0; i<m; i++){
   y[i] = 0;
}
for (int i=0; i<m; i++){
   for (int j=0; j<n; j++){
      for (int k=0; k<o; k++){
         for (int l=0; l<p; l++){
            y[i] = y[i] + b[%s]*a[%s];
 N/A N/A N/A N/A N/A j o p N/A k p l N/A N/A N/A N/A N/A N/A i n o p N/A N/A j o p N/A k p l          }
      }
   }
} N/A c N/A ccode N/A N/A b N/A N/A j k l N/A a N/A N/A i j k l assign_to N/A y N/A i N/A N/A c s N/A test_ccode_loops_addfactor N/A N/A N/A N/A sympy.tensor IndexedBase Idx sympy symbols N/A N/A n m o p N/A symbols n m o p integer True N/A a N/A IndexedBase a N/A b N/A IndexedBase b N/A c N/A IndexedBase c N/A y N/A IndexedBase y N/A i N/A Idx i m N/A j N/A Idx j n N/A k N/A Idx k o N/A l N/A Idx l p N/A s N/A N/A for (int i=0; i<m; i++){
   y[i] = 0;
}
for (int i=0; i<m; i++){
   for (int j=0; j<n; j++){
      for (int k=0; k<o; k++){
         for (int l=0; l<p; l++){
            y[i] = (a[%s] + b[%s])*c[%s] + y[i];
 N/A N/A N/A N/A N/A N/A N/A i n o p N/A N/A j o p N/A k p l N/A N/A N/A N/A N/A N/A i n o p N/A N/A j o p N/A k p l N/A N/A N/A N/A j o p N/A k p l          }
      }
   }
} N/A c N/A ccode N/A N/A N/A a N/A N/A i j k l N/A b N/A N/A i j k l N/A c N/A N/A j k l assign_to N/A y N/A i N/A N/A c s N/A test_ccode_loops_multiple_terms N/A N/A N/A N/A sympy.tensor IndexedBase Idx sympy symbols N/A N/A n m o p N/A symbols n m o p integer True N/A a N/A IndexedBase a N/A b N/A IndexedBase b N/A c N/A IndexedBase c N/A y N/A IndexedBase y N/A i N/A Idx i m N/A j N/A Idx j n N/A k N/A Idx k o N/A s0 for (int i=0; i<m; i++){
   y[i] = 0;
}
 N/A s1 N/A N/A for (int i=0; i<m; i++){
   for (int j=0; j<n; j++){
      for (int k=0; k<o; k++){
         y[i] = b[j]*b[k]*c[%s] + y[i];
 N/A N/A N/A N/A i n o N/A j o k       }
   }
}
 N/A s2 N/A N/A for (int i=0; i<m; i++){
   for (int k=0; k<o; k++){
      y[i] = b[k]*a[%s] + y[i];
 N/A N/A i o k    }
}
 N/A s3 N/A N/A for (int i=0; i<m; i++){
   for (int j=0; j<n; j++){
      y[i] = b[j]*a[%s] + y[i];
 N/A N/A i n j    }
}
 N/A c N/A ccode N/A N/A N/A N/A b N/A j N/A a N/A N/A i j N/A N/A b N/A k N/A a N/A N/A i k N/A N/A N/A b N/A j N/A b N/A k N/A c N/A N/A i j k assign_to N/A y N/A i N/A N/A N/A c N/A N/A N/A s0 s1 s2 N/A s3 N/A -1 N/A c N/A N/A N/A s0 s1 s3 N/A s2 N/A -1 N/A c N/A N/A N/A s0 s2 s1 N/A s3 N/A -1 N/A c N/A N/A N/A s0 s2 s3 N/A s1 N/A -1 N/A c N/A N/A N/A s0 s3 s1 N/A s2 N/A -1 N/A c N/A N/A N/A s0 s3 s2 N/A s1 N/A -1 N/A test_dereference_printing N/A N/A N/A N/A N/A expr N/A N/A N/A x y N/A sin z z N/A N/A N/A ccode expr dereference N/A z x + y + (*z) + sin((*z)) N/A test_Matrix_printing N/A N/A N/A N/A N/A mat N/A Matrix N/A N/A x y N/A Piecewise N/A N/A 2 x N/A y 0 N/A y True N/A sin z N/A A N/A MatrixSymbol A 3 1 N/A N/A N/A ccode mat A A[0] = x*y;
if (y > 0) {
   A[1] = x + 2;
}
else {
   A[1] = y;
}
A[2] = sin(z); N/A expr N/A N/A N/A Piecewise N/A N/A 2 N/A A N/A N/A 2 0 N/A x 0 N/A N/A A N/A N/A 2 0 True N/A sin N/A A N/A N/A 1 0 N/A A N/A N/A 0 0 N/A N/A N/A ccode expr ((x > 0) ? (
   2*A[2]
)
: (
   A[2]
)) + sin(A[1]) + A[0] N/A q N/A MatrixSymbol q 5 1 N/A M N/A MatrixSymbol M 3 3 N/A m N/A Matrix N/A N/A N/A sin N/A q N/A N/A 1 0 0 N/A cos N/A q N/A N/A 2 0 N/A N/A N/A q N/A N/A 1 0 N/A q N/A N/A 2 0 N/A q N/A N/A 3 0 5 N/A N/A N/A 2 N/A q N/A N/A 4 0 N/A q N/A N/A 1 0 N/A N/A sqrt N/A q N/A N/A 0 0 4 0 N/A N/A N/A ccode m M M[0] = sin(q[1]);
M[1] = 0;
M[2] = cos(q[2]);
M[3] = q[1] + q[2];
M[4] = q[3];
M[5] = 5;
M[6] = 2*q[4]*1.0/q[1];
M[7] = 4 + sqrt(q[0]);
M[8] = 0; N/A test_ccode_reserved_words N/A N/A N/A N/A N/A N/A x y N/A symbols x, if N/A N/A N/A ccode N/A y 2 pow(if_, 2) N/A N/A N/A ccode N/A x N/A y 2 dereference N/A y pow((*if_), 2)*x N/A expected pow(if_unreserved, 2) N/A N/A N/A ccode N/A y 2 reserved_word_suffix _unreserved expected N/A N/A raises ValueError N/A N/A N/A ccode N/A y 2 error_on_reserved True N/A test_ccode_sign N/A N/A N/A N/A N/A expr N/A N/A sign x y N/A N/A N/A ccode expr y*(((x) > 0) - ((x) < 0)) N/A N/A N/A ccode expr z z = y*(((x) > 0) - ((x) < 0)); N/A N/A N/A ccode N/A N/A N/A sign N/A N/A 2 x N/A x 2 x N/A x 2 pow(x, 2) + x*(((pow(x, 2) + 2*x) > 0) - ((pow(x, 2) + 2*x) < 0)) N/A expr N/A sign N/A cos x N/A N/A N/A ccode expr (((cos(x)) > 0) - ((cos(x)) < 0)) N/A