Multiplying through by lambda and taking terms independent of i from the sum, I seem to get 4 \sum x_i = n(lambda^2 - 6\lambda). This is just a quadratic equation for lambda.

Am I missing something?

Best,
Tom

On 21.02.2013 18:31, Matthew Rocklin wrote:
I need to solve the following problem for lambda.

   n
  ____
  ╲
   ╲      2
    ╲  - λ  + 6⋅λ + 4⋅xᵢ
    ╱  ───────────────── = 0
   ╱          4⋅λ
  ╱
  ‾‾‾‾
i = 1

This is the end of a simplification around a data-oriented problem.  In
the future I will be given a set of many `x_i`s as data and will be
asked to solve for lambda.  I'm trying to make this future computation
as simple as possible.

Can SymPy help me to reduce this problem any further?  (it has already,
by the way, done wonders.)

--
You received this message because you are subscribed to the Google
Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to