# SymPy returning Any\[\]

**URL:** <https://discourse.julialang.org/t/sympy-returning-any/92336>\
**Category:** General Usage\
**Created:** [December 30, 2022, 9:19pm UTC](https://discourse.julialang.org/t/sympy-returning-any/92336 "2022-12-30T21:19:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ejlongman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ejlongman/32/36801_2.png) [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Post date:** [December 30, 2022, 9:19pm UTC](https://discourse.julialang.org/t/sympy-returning-any/92336/1 "2022-12-30T21:19:32Z")

</div>

I am experimenting with the SymPy module, and I wrote the following code to estimate moments 1 and 2 given moments 3 and 4. With two equations and two unknowns I should get exact answers, but the following code returns “any”. Does anyone know why this happens?

```julia

m3 = mean(inv07.^3)

m4 = mean(inv07.^4)

using SymPy

# define the symbols for the unknowns

x, y = symbols("x y")

# define the equations

eq1 = 3*x^2*y + y^3 - m3

eq2 = 3x^4 + 6*x^2*y^2 +y^4 - m4

# solve the system of equations

soln = solve([eq1, eq2], [x, y])

println(soln)

```

---

<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:** [December 30, 2022, 9:42pm UTC](https://discourse.julialang.org/t/sympy-returning-any/92336/2 "2022-12-30T21:42:26Z")

</div>

No solution was found is the reason. You likely need a numeric, not symbolic, answer.
