Re: Defining Functions and Simplifying Solutions
- To: mathgroup at smc.vnet.net
- Subject: [mg90554] Re: [mg90498] Defining Functions and Simplifying Solutions
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sat, 12 Jul 2008 05:35:23 -0400 (EDT)
- Reply-to: hanlonr at cox.net
I do not understand your first question. As to the second, use Chop.
soln = {{a -> (0. (e1 \[Beta]1 + e2 \[Beta]2 \[Lambda]))/(rA \[Tau]^2)}};
soln[[1]] // Chop
{a->0}
Bob Hanlon
---- Locus <Gigalutscher at jubii.de> wrote:
=============
Hello!
I actually have to questions:
1. Is there a more handy way to define/use functions as compared to the following way (which works, but is complicated always typing the variable definitions):
G[\[Alpha]1_Real, \[Alpha]2_Real, e1_Real,
e2_Real] = \[Alpha]1*e1 + \[Alpha]2*e2
v[G_Real] = a*G[\[Alpha]1, \[Alpha]2, e1, e2] + b
2. After several steps, I receive the following solution
{{a -> (0. (e1 \[Beta]1 + e2 \[Beta]2 \[Lambda]))/(rA \[Tau]^2)}}
which obviously equals zero. How can I 'force' Mathematica to display only 0 as result and not such a unnessecarily complicated expression? FullSimplify does not work here.
Thanks a lot!