Ask Your Question
1

Solve with the assumption z!=0

asked 2022-02-18 04:09:14 +0200

ddd gravatar image

When I try to solve the following with the assumption z is nonzero solve still outputs the solution with z=0:

assume(z!=0)
solve([x,y*z],x,y,z,solution_dict=True)

Output:

[{x: 0, y: r79, z: 0}, {x: 0, y: 0, z: r80}]
edit retag flag offensive close merge delete

Comments

1

Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 2022-02-18 10:43:02 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-02-18 19:47:54 +0200

ddd gravatar image

updated 2022-02-18 19:48:13 +0200

I fixed this by adding an additional variable:

solve([x,y*z,a*z-1],x,y,z,a,solution_dict=True)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2022-02-18 04:09:14 +0200

Seen: 44 times

Last updated: Feb 18