MathGroup Archive 2004

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

Search the Archive

Re: Solving an equation


On Oct 14, 2004, at 6:35 AM, Scott wrote:

> Does anyone know of a better way to do
> this problem?

You could try using FindRoot eg.

FindRoot[{Re[Gamma[a + I b]] == 3, Im[Gamma[a + I b]] == 4}, {{a, 0.1}, 
{b, 0.1}}]

>   Is there a way to have Mathematica compare each result
> of the do loop to a given value, and given certain conditions spit out
> an answer for a and b?

You could use an If expression and a Print eg.

Do[expression;expression;...;If[test,Print["Some 
Message"]];...,{iterations}]

> Hope that makes sense.

I hope my answer's are helpful.

Regards,

Ssezi


  • Prev by Date: Re: Part of a matrix or array
  • Next by Date: Re: FilledPlot Sideways?
  • Previous by thread: Solving an equation
  • Next by thread: Re: Solving an equation