Student Support Forum: 'Filtering Solve results' topicStudent Support Forum > General > Archives > "Filtering Solve results"

 Next Comment > Help | Reply To Topic
 Author Comment/Response IndrekM80 05/04/12 05:38am Hi everybody, Is there a convenient way to filter solve results according to custom values inside those results?? I can similarly filter results containing complex numbers with following lines: Result=Solve[{x^4==64},{x}]; CplxFree[blk_]:=FreeQ[blk,_Complex]; ResultReal=Select[Result,CplxFree] gives me: {{x -> -2 Sqrt[2]}, {x -> 2 Sqrt[2]}} But now I would like to get rid of those blocks to where x<0, that is to get an answer like this: {{x -> 2 Sqrt[2]}} In real situation I have MANY unknowns in system, so solution should be specific to ONE variable in solution, for example in result {{x -> 4, y -> -4, z -> 3},{{x -> 4, y -> 4, z -> 3}} I would like to eliminate result where y is less than zero. Any help would be appreciated, thanks in advance URL: ,

 Subject (listing for 'Filtering Solve results') Author Date Posted Filtering Solve results IndrekM80 05/04/12 05:38am Re: Filtering Solve results Bill Simpson 05/04/12 11:28pm Re: Re: Filtering Solve results IndrekM80 05/06/12 01:21am Re: Re: Re: Filtering Solve results Bill Simpson 05/06/12 7:33pm Re: Re: Re: Re: Filtering Solve results IndrekM80 05/07/12 11:22am
 Next Comment > Help | Reply To Topic