Printable Version | Subscribe | Add to Favourites
New Topic New Poll New Reply
Author: Subject: OT - Maths / Excel help
mcerd1

posted on 4/12/12 at 04:08 PM Reply With Quote
OT - Maths / Excel help

I'm in a bit of a hurry here and it would really help me out if I could find a way of solving this for the real solution of this horrible thing using excel:

a^2 *b^3 + a*(2+c)*b^2 + (1 + 2c)*b - c*(2 + a) = 0

solving for b
a & c are known varibles


help !!





-

View User's Profile View All Posts By User U2U Member
mookaloid

posted on 4/12/12 at 04:56 PM Reply With Quote
There was a time when I could have done that stuff - but it was over 30 years ago and I can't remember any of it now





"That thing you're thinking - it wont be that."


View User's Profile E-Mail User View All Posts By User U2U Member
Rod Ends

posted on 4/12/12 at 05:02 PM Reply With Quote
try Wolfram Alpha
View User's Profile View All Posts By User U2U Member
me!

posted on 4/12/12 at 06:05 PM Reply With Quote
What are a and c? Should be easy to do by plotting it against a range of values for b, where the line crosses 0 are your answers (it looks like a cubic so there could be 3 solutions)
View User's Profile View All Posts By User U2U Member
matt_gsxr

posted on 4/12/12 at 06:06 PM Reply With Quote
Mathematica says:

{
{b = -((2 a + a c)/(3 a^2)) - (2^(1/3) (-a^2 + 2 a^2 c - a^2 c^2))/(
3 a^2 (2 a^3 + 21 a^3 c + 54 a^4 c + 27 a^5 c + 6 a^3 c^2 -
2 a^3 c^3 + Sqrt[
4 (-a^2 + 2 a^2 c - a^2 c^2)^3 + (2 a^3 + 21 a^3 c +
54 a^4 c + 27 a^5 c + 6 a^3 c^2 - 2 a^3 c^3)^2])^(
1/3)) + (2 a^3 + 21 a^3 c + 54 a^4 c + 27 a^5 c + 6 a^3 c^2 -
2 a^3 c^3 + Sqrt[
4 (-a^2 + 2 a^2 c - a^2 c^2)^3 + (2 a^3 + 21 a^3 c + 54 a^4 c +
27 a^5 c + 6 a^3 c^2 - 2 a^3 c^3)^2])^(1/3)/(
3 2^(1/3) a^2)},

{b = -((2 a + a c)/(
3 a^2)) + ((1 + I Sqrt[3]) (-a^2 + 2 a^2 c - a^2 c^2))/(3 2^(2/3)
a^2 (2 a^3 + 21 a^3 c + 54 a^4 c + 27 a^5 c + 6 a^3 c^2 -
2 a^3 c^3 + Sqrt[
4 (-a^2 + 2 a^2 c - a^2 c^2)^3 + (2 a^3 + 21 a^3 c +
54 a^4 c + 27 a^5 c + 6 a^3 c^2 - 2 a^3 c^3)^2])^(
1/3)) - (1/(
6 2^(1/3)
a^2))(1 - I Sqrt[3]) (2 a^3 + 21 a^3 c + 54 a^4 c + 27 a^5 c +
6 a^3 c^2 - 2 a^3 c^3 + Sqrt[
4 (-a^2 + 2 a^2 c - a^2 c^2)^3 + (2 a^3 + 21 a^3 c +
54 a^4 c + 27 a^5 c + 6 a^3 c^2 - 2 a^3 c^3)^2])^(
1/3)},

{b = -((2 a + a c)/(
3 a^2)) + ((1 - I Sqrt[3]) (-a^2 + 2 a^2 c - a^2 c^2))/(3 2^(2/3)
a^2 (2 a^3 + 21 a^3 c + 54 a^4 c + 27 a^5 c + 6 a^3 c^2 -
2 a^3 c^3 + Sqrt[
4 (-a^2 + 2 a^2 c - a^2 c^2)^3 + (2 a^3 + 21 a^3 c +
54 a^4 c + 27 a^5 c + 6 a^3 c^2 - 2 a^3 c^3)^2])^(
1/3)) - (1/(
6 2^(1/3)
a^2))(1 + I Sqrt[3]) (2 a^3 + 21 a^3 c + 54 a^4 c + 27 a^5 c +
6 a^3 c^2 - 2 a^3 c^3 + Sqrt[
4 (-a^2 + 2 a^2 c - a^2 c^2)^3 + (2 a^3 + 21 a^3 c +
54 a^4 c + 27 a^5 c + 6 a^3 c^2 - 2 a^3 c^3)^2])^(1/3)
}}

View User's Profile Visit User's Homepage View All Posts By User U2U Member
mark chandler

posted on 4/12/12 at 06:11 PM Reply With Quote
That's made it much easier
View User's Profile View All Posts By User U2U Member
jps

posted on 4/12/12 at 08:29 PM Reply With Quote
quote:
Originally posted by me!
What are a and c? Should be easy to do by plotting it against a range of values for b, where the line crosses 0 are your answers (it looks like a cubic so there could be 3 solutions)


On a similar vein, surely if a and B are known values you just stick the whole formula into excel but with C referencing a cell - then keep changing the value in the cell (trial and error) until you hit a solution...?

I know that's not the point of maths, but it'd give you an answer...

View User's Profile Visit User's Homepage View All Posts By User U2U Member
perksy

posted on 4/12/12 at 08:32 PM Reply With Quote



I'll get me coat....

View User's Profile View All Posts By User U2U Member
nick205

posted on 4/12/12 at 09:19 PM Reply With Quote
That must have been one of the bits I missed at school






View User's Profile View All Posts By User U2U Member
coyoteboy

posted on 4/12/12 at 09:39 PM Reply With Quote
Yeah that's unpleasant, just drop it into wolframalpha.com like this, obviously fill in A and B:

a^2 *b^3 + a*(2+c)*b^2 + (1 + 2c)*b - c*(2 + a) = 0 solve for b where a= and b=

Or leave a and b alone and copy the beast of a real solution into excel.

View User's Profile E-Mail User View All Posts By User U2U Member
austin man

posted on 4/12/12 at 10:59 PM Reply With Quote
surely the answer has to be 7





Life is like a bowl of fruit, funny how all the weird looking ones are left alone

View User's Profile View All Posts By User U2U Member
mcerd1

posted on 5/12/12 at 08:42 AM Reply With Quote
cheers guys, wolframalpha.com now bookmarked

one down 12 more to go





-

View User's Profile View All Posts By User U2U Member
hughpinder

posted on 5/12/12 at 10:54 AM Reply With Quote
Just for reference, excel has a feaure called 'solver'- press F1 and type solver - you have to install it as an option, but ut will already be on your system so no internet access reqired, but then it allows you to enter equations in a cell, specify where your data is and the constraints and it gives you an answer. - its good for stuff like working out the best mis of work for maximum profit etc. Last time I showed someone how to use it they picked it up pretty easily. I'm sure there are some good examples on the web. I'm pretty sure it doesn't do imaginary numbers though, so pretty limited for advanced stuff.
View User's Profile View All Posts By User U2U Member
mcerd1

posted on 5/12/12 at 11:35 AM Reply With Quote
never had much luck with excel's solver (needs to work in the old 97-03 format, which is a bit more limited I think)


this is actually a small part of calculating the effect of short circuits on high voltage overhead lines - basically catenary functions mixed with magnetic fields and a fair bit of damped harmonic motion

[Edited on 5/12/2012 by mcerd1]





-

View User's Profile View All Posts By User U2U Member

New Topic New Poll New Reply


go to top






Website design and SEO by Studio Montage

All content © 2001-16 LocostBuilders. Reproduction prohibited
Opinions expressed in public posts are those of the author and do not necessarily represent
the views of other users or any member of the LocostBuilders team.
Running XMB 1.8 Partagium [© 2002 XMB Group] on Apache under CentOS Linux
Founded, built and operated by ChrisW.