Skip to content

Commit

Permalink
match another pattern for cubic root
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Sep 20, 2017
1 parent 5b62087 commit b6d22fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta/CConversion.m
Expand Up @@ -689,7 +689,7 @@
Format["Sqr(" <> ToString[CForm[b]] <> ")", OutputForm];
Format[Power[b_,0.5 | 1/2],CForm] :=
Format["Sqrt(" <> ToString[CForm[b]] <> ")", OutputForm];
Format[Power[b_,1/3],CForm] :=
Format[Power[b_,1./3 | 1/3],CForm] :=
Format["Cbrt(" <> ToString[CForm[b]] <> ")", OutputForm];
Protect[Power];

Expand Down

0 comments on commit b6d22fb

Please sign in to comment.