# [Maxima] problem with equation solving

Junjun Xu junjunxu87 at gmail.com
Mon Jul 16 21:08:49 CDT 2012

```I'm trying to solve a integration equation, but there is something wrong
with it and I can't understand it.
Does anyone can tell me where the problem is? I am a beginner of maxima.
Many thanks!!

The code is like this:

g(x):=romberg(x*k,k,0,1)\$
mnewton(f(x)-0.5,x,1);
mnewton(g(x)-0.5,x,1);

Variable of integration not a variable: 1
#0: solve_by_lu(eqs=[quad_qags(1.0*k,k,0,1,epsrel = 1.0E-8,epsabs =
0.0,limit = 200)[1]-0.5],vars=[h[1]],field=complexfield)
#1: mnewton(funclist=quad_qags(k*x,k,0,1,epsrel = 1.0E-8,epsabs = 0.0,limit
= 200)[1]-0.5,varlist=x,guesslist=1)(mnewton.mac line 113)
-- an error. To debug this try: debugmode(true);
diff: variable must not be a number; found: 1.0
#0:
mnewton(funclist=romberg(k*x,k,0.0,1.0)-0.5,varlist=x,guesslist=1)(mnewton.mac
line 111)
-- an error. To debug this try: debugmode(true);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20120717/75213c61/attachment.html>
```