Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 10 years ago

ensaba gravatar image

How to do operations that change a relation?

For example,

Given a<b, we="" know="" that="" if="" we="" multiply="" both="" sides="" with="" -1,="" we="" will="" get="" -a="" &gt;="" -b.<="" p="">

But in sage, if I try this:

var('a b')
exp=a>b
exp*-1

I get:

  a>−b

The > did not get flip (the same also happens if we take the reciprocal).

Are the functions in Sage that can perform the multiplication with properly handle the inequality as well? Otherwise, what is the recommended way to do this manually?

click to hide/show revision 2
No.2 Revision

How to do operations that change a relation?

For example,

Given a<b, we="" know="" that="" if="" we="" multiply="" both="" sides="" with="" -1,="" we="" will="" get="" -a="" &gt;="" -b.<="" p="">

But in sage, if I try this:

var('a b')
exp=a>b
exp*-1

I get:

  a>−b

The > did not get flip (the same also happens if we take the reciprocal).

Are the functions in Sage that can perform the multiplication with properly handle the inequality as well? Otherwise, what is the recommended way to do this manually?

click to hide/show revision 3
No.3 Revision

How to do operations that change a relation?

For example,

Given a<b, we="" know="" that="" if="" we="" multiply="" both="" sides="" with="" -1,="" we="" will="" get="" -a="" &gt;="" -b.<="" p="">

But in sage, if I try this:

var('a b')
exp=a>b
exp*-1

I get:

  a>−b

The > did not get flip (the same also happens if we take the reciprocal).

Are the functions in Sage that can perform the multiplication with properly handle the inequality as well? Otherwise, what is the recommended way to do this manually?

click to hide/show revision 4
No.4 Revision

How to do operations that change a relation?

For example,example, given a < b, we know that if we multiply both sides with -1, we will get -a > -b.

But in sage, if I try this:

var('a b')
exp=a>b
exp*-1

I get:

  a>−b

The > did not get flip (the same also happens if we take the reciprocal).

Are the functions in Sage that can perform the multiplication with properly handle the inequality as well? Otherwise, what is the recommended way to do this manually?