Ask Your Question
0

Domain and range in Sage Math

asked 2014-10-26 14:51:29 +0100

masac gravatar image

updated 2014-10-26 17:41:15 +0100

vdelecroix gravatar image

How do i find the domain and range in Sage Math of a function:

f(x) = x/(x^2-1)
g(x) = e^(-x^2) ?
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-10-26 17:59:31 +0100

masac gravatar image

updated 2014-10-26 18:01:22 +0100

Thank you. Domain/ Range I try to do the same operations in Sage.

edit flag offensive delete link more
0

answered 2014-10-26 17:47:52 +0100

vdelecroix gravatar image

Hello,

Be careful that your question is not well defined. In the definition of a function there is already a domain and a codomain (and the range is a subset of the codomain). In particular it makes no sense to compute the domain.

I guess that what you meant is : on which set of numbers the expression XXX is valid ? Remark that this is relatively subtle because an expression like

(x^2 - 1) / (x^2 - 1)

is not well defined at x=1 since 0 / 0 is not defined.

The question is still not well defined since you might want to consider this expression over the real numbers, the complex numbers, the Riemann sphere or something even more complicated. Depending on the question, you have first to see where the expression makes sense and then to compute the range. For this last computation Sage can currently not help.

Vincent

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

1 follower

Stats

Asked: 2014-10-26 14:51:29 +0100

Seen: 4,246 times

Last updated: Oct 26 '14