02:00 -!- Prax01D(n=Prax01D@149.99.99.135) has joined #maxima 02:23 -!- JohnFlux_(n=JohnFlux@cpc1-brig10-0-0-cust482.brig.cable.ntl.com) has joined #maxima 02:23 Hey all! 02:23 I'm trying to solve a second order differential equation. I'm trying: 02:23 (%i6) solve(m*diff(x(t),t,2) + 4*k*x(t) = m*g + 5*k*l, x(t)); 02:23 but it just returns basically what i entered 02:23 it doesn't do the integration 02:25 oh 02:25 desolve seems to be what I want 02:29 I'm reading the docs on it now 02:29 but just want to say that I really like maxima 02:30 Thank you, to any developers listening ;-) 02:46 just one thing.. 02:46 it doesn't seem to realise that sqrt(a*b)/b is simpler to write as sqrt(a/b) 02:58 JohnFlux_: Seems maxima likes sqrt(a)/sqrt(b) most. 02:59 Perhaps you are looking for radcan() ? 02:59 HaraldG hey 02:59 HaraldG a quick question please... if I do integrate(x,x); i don't get a constant of integration 02:59 is this on purpose? 03:00 Yes, i think so. 03:01 It is quite tricky to get the most general integral, so maxima just gives you special. 03:02 But I think it always gives all constans when solving ODEs. 03:10 HaraldG: btw, do you use a GUI ? 03:11 Depends on what I'm doing. Usually not, but I think wxmaxima is quite nice. 03:11 It has some extra features, like better latex export, too. 03:12 ah cool 03:12 i write up in latex, solve it myself, then checking with maxima in plain text 03:12 i could probably use some tools to streamline that a bit 03:27 HaraldG: can I get it to try harder to simplify an equation? 03:27 HaraldG: one of the terms in the solution has 4 k m cos(..) /m 03:28 i have no idea why it didn't cancel the m's 03:29 Well, simple canceling should be done by the core simplifier. 03:29 yeah it's funny 03:29 Does it work, if you enter the expression yourself? 03:29 yes 03:29 (%i24) A*cos(sqrt(4*k/m)*t + p) + (m*g+5*k*l)/(4*k); 03:29 (%i25) m*diff(%o24,t,2) + 4*k*%o24; 03:30 that gives me a long equation when most of it trivally cancels out 03:31 ooo 03:31 it is of course totally my faul 03:31 fault 03:32 well, i mean it doesn't trivally cancel out 03:32 but the problem is still there 03:33 wait I was originally right sorry - it does cancel out 03:33 damn this text view :P 03:33 Well, I see the issue with the "m". It goes away, when I do ev(%). 03:33 it should cancel out, rather 03:34 That is, after an extra evalutation. I don't understand why this is needed ... 03:34 although even then 03:34 after the ev(%) it still hasn't cancelled most of it out 03:34 it should just give gm+5kl 03:34 shouldn't it ? 03:35 To have the simplifier handle trigonometric functions, you have to use trigsimp(). 03:36 hmm, it's not simplifying that 03:36 But the core simplifier should hanlde m/m at the first run IMO. 03:36 look at the result after ev(%) - it has: 03:37 4 k ( _ + (gm+5kl)/(4k)) + 4 k _ 03:37 where _ is the cos bit 03:37 doh 03:37 4 k ( _ + (gm+5kl)/(4k)) - 4 k _ 03:37 i mean 03:37 so it should cancel the 4 k _ bits 03:38 that's not trigometric simplification 03:38 Yes, I see your point. 03:38 trigsimp does fix it though and give the right answer 03:39 Hm, expand() does the right thing too. 03:39 Not yet sure, if this is what I expect. 03:43 Unfortunately the core simplifier is almost undocumented, i already 03:44 played with it several days to get an idea what it does or does not. 03:45 HaraldG: It's written in lisp? 03:45 It seems it handles a*(c/a)-c well while it gives up on a*(b+c/a)-c-a*b. 03:45 No idea if this should be considerd a bug or a feature. 03:46 Yes, almost all of maxima is written in lisp. 03:46 i think it's a bug to do a*(b+c/a) 03:46 that should be immediately written as ab + c 03:46 almost all? 03:47 Some addon packages are written in maxima itself. 03:47 ah 03:48 I won't say that this is a bug that easily. 03:48 Some people would like to get rid of the core simplifier totally and handle everything with explicit function calls. 03:49 The core simplifier can't be controlled (only turned off as a whole). Therefore it shouldn't do too much. 03:51 I don't know it anybody has use for verbatim a*(b+c/a) ... 03:52 But I have put this on my list of issues to keep in mind. 08:01 -!- Prax01D(n=Prax01D@149.99.85.87) has joined #maxima 14:03 -!- Prax01D(n=Prax01D@149.99.90.59) has joined #maxima 16:48 -!- HaraldG(n=rldprog@chello080108070152.13.11.univie.teleweb.at) has joined #maxima 19:53 -!- Prax01D(n=Prax01D@tor58-10-93-63.dynamic.rogerstelecom.net) has joined #maxima 20:09 -!- Ger895235976(n=Gert@p2p-gtn-e.ilca.ru) has joined #maxima 22:20 -!- HaraldG(n=rldprog@chello080108070152.13.11.univie.teleweb.at) has joined #maxima