Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'stripping off coefficients' topicStudent Support Forum > General > "stripping off coefficients"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
05/02/12 09:32am

Say that your result is
res={553.639 + 0.105118 x, 1686.86 + 0.0786843 x, 2510.24 + 0.0705797 x,
8737.44 + 0.0519555 x, 9561.36 + 0.0509397 x};
Than pick what you like most (and is appropriate for your needs)

res /. a_ + b_ x :> b x
res /. a_ + b_ x :> b

Coefficient[res, x, 1] x
Coefficient[res, x, 1]

Last /@ res

yehuda


URL: ,

Subject (listing for 'stripping off coefficients')
Author Date Posted
stripping off coefficients Henri Garcia 04/30/12 8:42pm
Re: stripping off coefficients Patrick 05/01/12 2:49pm
Re: stripping off coefficients Henri Garcia 05/01/12 7:41pm
Re: Re: stripping off coefficients Peter Pein 05/03/12 04:46am
Re: Re: Re: stripping off coefficients Henri Garcia 05/05/12 5:12pm
Re: stripping off coefficients yehuda ben-s... 05/02/12 09:32am
Re: Re: stripping off coefficients Henri Garcia 05/05/12 5:14pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic