Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8737
| From | Howard Lovatt <howard.lovatt@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Complex and Solve |
| Date | 2012-02-25 06:58 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jia0ra$1cq$1@smc.vnet.net> (permalink) |
| References | <201202211115.GAA08330@smc.vnet.net> |
Thanks Bob,
That is even better. I am somewhat surprised that you need to manually
specify $Assumptions and that since this is global that Solve doesn't take
this into account anyway.
But this solution is much better than my original, so thanks again,
-- Howard.
On 23 February 2012 23:07, Bob Hanlon <hanlonr357@gmail.com> wrote:
> Actually I should have checked, with version 8 Solve can handle
> inequalities so either Reduce or Solve works here.
>
> $Assumptions = rfe > 0 && l > 0;
>
> r = 1;
> \[Omega] = 300;
> vrms = 2;
> irms = 1/2;
> \[Phi] = 30 Degree;
>
> impedance = r + 1/(1/rfe + 1/(I \[Omega] l)) // FullSimplify;
>
> voltage = vrms (Cos[\[Phi]] + I Sin[\[Phi]]) // Simplify;
>
> Solve[{irms == voltage/impedance, $Assumptions}, {rfe,
> l}][[1]] // FullSimplify
>
> {rfe -> (1/11)*(-7 + 30*Sqrt[3]), l -> (1/600)*(17 - 4*Sqrt[3])}
>
> Alternatively,
>
> Solve[{irms == voltage/impedance, Im[l] == 0, Im[rfe] == 0}, {rfe,
> l}][[1]] // FullSimplify
>
> {rfe -> (1/11)*(-7 + 30*Sqrt[3]), l -> (1/600)*(17 - 4*Sqrt[3])}
>
>
> Bob Hanlon
>
> On Thu, Feb 23, 2012 at 5:46 AM, <howard.lovatt@gmail.com> wrote:
> > Thanks Bob,
> >
> > Your solution is much better than mine. I had no idea that Reduce could
> be used like you showed.
> >
> > Bizarre that Solve and Reduce behave so differently!
> >
> > Thanks again,
> >
> > -- Howard.
> >
>
>
>
> --
> Bob Hanlon
>
--
-- Howard.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Complex and Solve Howard Lovatt <howard.lovatt@gmail.com> - 2012-02-25 06:58 +0000
csiph-web