Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Coefficient[...] in a package' topicStudent Support Forum > General > Archives > "Coefficient[...] in a package"

Next Comment >Help | Reply To Topic
Author Comment/Response
henri
02/25/06 06:10am

I created (in Mathematica 4.1.2) a function
nE2[Eb_]:=Coefficient[Extract[Eb2,{1}],{x, y, z}];
to get then normal-vector of a plane
e.g. {2,-3,1} from Eb=-7+2x-3y+z==0.
In a Notebook it works well.
When I create a package to use this function easily, I always get the result {0,0,0}.
Remark:
If I write the function
nE2[Eb_]:=Coefficient[-7+2x-3y+z],{x, y, z}];
I get the right result {2,-3,1} (but there is of course no meaning in this function).
Is there somebody who ca help me?
With kind regards
Henri

URL: ,

Subject (listing for 'Coefficient[...] in a package')
Author Date Posted
Coefficient[...] in a package henri 02/25/06 06:10am
Re: Coefficient[...] in a package yehuda ben-s... 02/26/06 11:12pm
Re: Coefficient[...] in a package henri 03/07/06 08:26am
Next Comment >Help | Reply To Topic