# Bug in sage solve

Sage raises an error when I try to solve the following:

`solve(a*exp(k*2) - n, a*exp(k*8)-m, a, k, solution_dict=True)`

What is the reason for this?

1

You need to define the variables using the `var`

command. Also, the syntax for `solve`

is slightly different.

```
var('a k n m')
solve([a*exp(k*2) - n==0, a*exp(k*8)-m==0], [a, k], solution_dict=True)
```

Unfortunately, Sage (which uses Maxima for this) does not solve the equation.

However, sympy does a nice job of solving here.

```
var('a k n m')
import sympy as sp
sp.solve([a*exp(k*2) - n, a*exp(k*8)-m], [a, k],dict=True)
```

Asked: **
2016-05-21 02:09:31 -0500
**

Seen: **31 times**

Last updated: **May 21 '16**

Display x-intercept of a plot, involving x raised to the 3rd power.

Double Integration not working

solution to homogeneous system of linear equations with coefficients over field $\mathbb{F}_2$

Output results of sage MixedIntegerLinearProgram solution are not as expected

When does 1/2=0 ? (python's integer division Vs Sage's exact fractions)

where to get python coding tutorial for beginners link PDF

Unable to make sense of Maxima expression

Python thing that doesn't work in Sage, works in pure Python

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.