Ask Your Question

Determine domain and range of linear equation?

asked 2013-06-22 10:08:35 -0500

bxdin gravatar image

I was able to determine obtain this easily with, Wolfram Alpha:

Is it possible with Sage 5.9?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-06-23 10:02:57 -0500

tmonteil gravatar image

Though it is not created for that purpose, you can use interval arithmetics:

sage: f(x) = abs(x) - 4
sage: a = RIF(-infinity,infinity) ; a
[-infinity .. +infinity]
sage: a.parent()
Real Interval Field with 53 bits of precision
sage: f(a)
[-4.0000000000000000 .. +infinity]

Here you get the exact result, but note that in general, you will only get an interval that contains the image of the function.

edit flag offensive delete link more

answered 2013-06-22 12:43:37 -0500

ppurka gravatar image

updated 2013-06-23 08:47:52 -0500

Whoops! Stupid answer deleted. :-/

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


Asked: 2013-06-22 10:08:35 -0500

Seen: 975 times

Last updated: Jun 23 '13