# Prevent canonical form for complex equations in Symbolics.jl

**URL:** https://discourse.julialang.org/t/prevent-canonical-form-for-complex-equations-in-symbolics-jl/79800
**Category:** Specific Domains
**Tags:** symbolics
**Created:** [April 21, 2022, 8:26pm UTC](https://discourse.julialang.org/t/prevent-canonical-form-for-complex-equations-in-symbolics-jl/79800 "2022-04-21T20:26:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sciemon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sciemon/32/20897_2.png) [@Sciemon](https://discourse.julialang.org/u/Sciemon)
#### Post date: [April 21, 2022, 8:26pm UTC](https://discourse.julialang.org/t/prevent-canonical-form-for-complex-equations-in-symbolics-jl/79800/1 "2022-04-21T20:26:08Z")

</div>

Symbolics.jl brings expressions to a canonical form by default (see also [this](https://github.com/JuliaSymbolics/SymbolicUtils.jl/issues/327) discussion). Recently a new type of variable (::LiteralReal) was implemented to prevent this so you can keep the expression as it is (see [here](https://github.com/JuliaSymbolics/SymbolicUtils.jl/pull/429)).  
My goal is to keep a complex equation as it is (by default complex equations are separated into real and imaginary part). It should stay one complex equation. To make things even more complicated, I want to take the derivative w.r.t. one of the variables (and it should stay one complex equation).  
I assume this is not possible and will not be implemented soon, if ever, due to other priorities?

Background: I want to create latex equations for a paper.

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [April 21, 2022, 9:06pm UTC](https://discourse.julialang.org/t/prevent-canonical-form-for-complex-equations-in-symbolics-jl/79800/2 "2022-04-21T21:06:46Z")

</div>

Yeah, it’s just a priorities thing. But if you open up issues of LiteralReal not doing what you want, it could be improved.

---

<div class="post-metadata">

### Author: ![Sciemon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sciemon/32/20897_2.png) [@Sciemon](https://discourse.julialang.org/u/Sciemon)
#### Post date: [April 22, 2022, 9:26am UTC](https://discourse.julialang.org/t/prevent-canonical-form-for-complex-equations-in-symbolics-jl/79800/3 "2022-04-22T09:26:37Z")

</div>

I created an [issue](https://github.com/JuliaSymbolics/Symbolics.jl/issues/577) in Symbolics.jl.
