Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13712 > unrolled thread

Re: How to find the roots of non linear equations

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-03-05 09:16 +0000
Last post2013-03-05 09:16 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to find the roots of non linear equations Bob Hanlon <hanlonr357@gmail.com> - 2013-03-05 09:16 +0000

#13712 — Re: How to find the roots of non linear equations

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-03-05 09:16 +0000
SubjectRe: How to find the roots of non linear equations
Message-ID<kh4d5b$70v$1@smc.vnet.net>
Multiple equations need to be entered as a list

f1 = a*Sin[x]/l0 + b*Sin[x]/l1;
f2 = y*Cos[x]/l0 + y*Cos[x]/l1 - (1/e^y);
soln1 = Solve[{f1 == 0, f2 == 0}, {x, y}] // Simplify

Solve::ifun: Inverse functions are being used by Solve, so some
solutions may not be found; use Reduce for complete solution
information. >>

{{x -> -ArcCos[(-l0 - l1)/
             Sqrt[(l0 + l1)^2]],
     y -> ProductLog[
           -((l0*l1*Log[e])/
                Sqrt[(l0 + l1)^2])]/
         Log[e]},
   {x -> ArcCos[(-l0 - l1)/
           Sqrt[(l0 + l1)^2]],
     y -> ProductLog[
           -((l0*l1*Log[e])/
                Sqrt[(l0 + l1)^2])]/
         Log[e]},
   {x -> -ArcCos[(l0 + l1)/
             Sqrt[(l0 + l1)^2]],
     y -> ProductLog[
           (l0*l1*Log[e])/
             Sqrt[(l0 + l1)^2]]/
         Log[e]},
   {x -> ArcCos[(l0 + l1)/
           Sqrt[(l0 + l1)^2]],
     y -> ProductLog[
           (l0*l1*Log[e])/
             Sqrt[(l0 + l1)^2]]/
         Log[e]}}


Verifying

{f1 == 0, f2 == 0} /. soln1 // Simplify

{{True, True}, {True, True}, {True, True}, {True, True}}


Or if the denominators are intended to be the numbers 10 and 11 and e
is intended to be E

f1 = a*Sin[x]/10 + b*Sin[x]/11;
f2 = y*Cos[x]/10 + y*Cos[x]/11 - (1/E^y);
soln2 = Solve[{f1 == 0, f2 == 0}, {x, y}]

Solve::ifun: Inverse functions are being used by Solve, so some
solutions may not be found; use Reduce for complete solution
information. >>

{{x -> -Pi, y -> ProductLog[
         -(110/21)]}, {x -> Pi,
     y -> ProductLog[-(110/21)]},
   {x -> 0, y -> ProductLog[
         110/21]}}


Verifying

{f1 == 0, f2 == 0} /. soln2 // Simplify

{{True, True}, {True, True}, {True, True}}


Bob Hanlon


2013/3/3 Norman Polozka <normanmath@gmail.com>:
> f1=a*Sin[x]/l0 + b*Sin[x]/l1
> f2= y*Cos[x]/l0+ y*Cos[x]/l1 - (1/e^y)
> Solve[f1==0,f2==0,{x,y}]
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web