MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Problem with simultaneous equations with several variables - population genetics


Richard Anderson wrote:

>         The solution, courtesy of Daniel Lichtblau at Wolfram, involves getting
> rid of denominators to prevent Solve from generating extra variables to
> handle them. We subtract one side from the other, use Together to get
> numerator / denominator, and set it to zero. This code does this:
> 
> eqs={pfs==pf,pms==pm};
> polys=Map[#[[1]]-#[[2]]&,eqs];

Using Subtract is a bit neater:

 polys = Apply[Subtract,eqs,1]
 
Cheers,
	Paul 

____________________________________________________________________ 
Paul Abbott                                   Phone: +61-8-9380-2734
Department of Physics                           Fax: +61-8-9380-1014
The University of Western Australia           
Nedlands WA  6907                     mailto:paul at physics.uwa.edu.au 
AUSTRALIA                             http://www.pd.uwa.edu.au/~paul

            God IS a weakly left-handed dice player
____________________________________________________________________


  • Prev by Date: Mathematica 3.0.0 bug in LerchPhi function
  • Next by Date: Re: Useful Dumb User Questions
  • Previous by thread: Re: Problem with simultaneous equations with several variables - population genetics
  • Next by thread: automated notebook creation?