Group Abstract Group Abstract

Message Boards Message Boards

Solve[] not giving ConditionalExpression?

Posted 5 years ago
POSTED BY: Thomas Tse
5 Replies
Posted 5 years ago

Hi Thomas,

Use Reduce

Reduce[x*c == 1, x]
(* c != 0 && x == 1/c *)
POSTED BY: Rohit Namjoshi

Hi Thomas The coefficient c cannot be zero at the first place because if it is, then your equation you are trying to solve will not be valid as you get 0==1 That is why Solve[] assumed that c cannot be zero.

POSTED BY: Ahmed Elbanna
Posted 5 years ago
POSTED BY: Updating Name
Posted 5 years ago

as suggested by Robit below:

Reduce[x * c == y, x]
(y == 0 && c == 0) || (c != 0 && x == y/c)

that said, I should always use Reduce rather than Solve ???

POSTED BY: Thomas Tse

Use Reduce when you want the conditions, Solve when you want the generic solution.

POSTED BY: John Doty
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard