# Help with solving symbolic nonlinear system of equations

**URL:** <https://discourse.julialang.org/t/help-with-solving-symbolic-nonlinear-system-of-equations/80077>\
**Category:** New to Julia\
**Created:** [April 26, 2022, 4:54pm UTC](https://discourse.julialang.org/t/help-with-solving-symbolic-nonlinear-system-of-equations/80077 "2022-04-26T16:54:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grace\_Chuan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/grace_chuan/32/35724_2.png) [@Grace\_Chuan](https://discourse.julialang.org/u/Grace_Chuan)\
**Post date:** [April 26, 2022, 4:54pm UTC](https://discourse.julialang.org/t/help-with-solving-symbolic-nonlinear-system-of-equations/80077/1 "2022-04-26T16:54:18Z")

</div>

Hi, I wrote some Matlab code that uses vpasolve to solve for the elements in a vector (x=[x1,x2,x3,etc]) in a matrix-based equation ( term = x) and the term itself has x values in it. The term is super complicated and based on a theoretical model so I will keep things general when describing them.

But essentially in Matlab I have:  
eqn=x==term(x)  
x = vpasolve(eqn,x)

I am trying to translate this into Julia and tried sympy package’s nonlinsolve and nsolve function. However I keep getting the error pasted below. It seems like things should be in symbolic object rather than sym?? If that’s the case what does that mean and how do I create sympy symbolic objects and not sym ?

Thanks!

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/b/ab4a840286daacae2c8d034b41255f40eb2a711c.jpeg)

---

<div class="post-metadata">

**Author:** ![j\_verzani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_verzani/32/8551_2.png) [@j\_verzani](https://discourse.julialang.org/u/j_verzani)\
**Post date:** [April 26, 2022, 5:42pm UTC](https://discourse.julialang.org/t/help-with-solving-symbolic-nonlinear-system-of-equations/80077/2 "2022-04-26T17:42:05Z")

</div>

I didn’t type in all this, but my guess is the issue is that there is no extra interface provided by `nsolve`, so you would need to qualify the call, as in `sympy.nsolve(...`. (I’m working on a PR to address this, as it came up before.)
