[CAS] find domain for function?
09-16-2015, 10:46 AM
Post: #1
 ww63 Junior Member Posts: 43 Joined: Sep 2014
[CAS] find domain for function?
Hello,

is there a function / command to find the domain, for whitch a function is defined?

Examples:

f(x) = x/(x-1) should result in x<>1
f(x) = ln(x) should result in x > 0

regards Wolfgang
09-18-2015, 01:20 PM
Post: #2
 ww63 Junior Member Posts: 43 Joined: Sep 2014
RE: [CAS] find domain for function?
Just bring it on top again!

@parisse: Is there no such command?

regards Wolfgang
09-18-2015, 01:42 PM (This post was last modified: 09-18-2015 01:44 PM by Tim Wessman.)
Post: #3
 Tim Wessman Senior Member Posts: 2,292 Joined: Dec 2013
RE: [CAS] find domain for function?
There is not. He feels it is not a useful thing to have.

TW

Although I work for HP, the views and opinions I post here are my own.
09-18-2015, 02:10 PM
Post: #4
 Han Senior Member Posts: 1,882 Joined: Dec 2013
RE: [CAS] find domain for function?
A graph would serve the same purpose as such a command, and would be more useful from a pedagogical point of view.

Graph 3D | QPI | SolveSys
09-18-2015, 02:11 PM (This post was last modified: 09-18-2015 02:14 PM by Helge Gabert.)
Post: #5
 Helge Gabert Senior Member Posts: 467 Joined: Dec 2013
RE: [CAS] find domain for function?
BTW, The 50G has TABVAR, which returns the domain and poles for some functions (reducible to a rational expression), but I never found that particularly useful either. Easier to just graph the function!
09-18-2015, 03:37 PM
Post: #6
 parisse Senior Member Posts: 1,272 Joined: Dec 2013
RE: [CAS] find domain for function?
Xcas has the singular function, it does not return exactly the domain (for example singular(ln(x)) returns [0]), but it gives some informations about.
09-19-2015, 08:23 AM
Post: #7
 Aries Member Posts: 159 Joined: Oct 2014
RE: [CAS] find domain for function?
As for polynomials functions there is no problem, their domain is R.
For fractional functions 1/f(x) we can solve f(x)=0 and the roots are the ones to be excluded from R.
For irrational functions sqrt(f(x)), solving f(x)>=0 is enough.
In many cases in order to find the domain of a function we need to set a system:
y=sqrt(log(x^2-8*x+8)), solve({x^2-8*x+8>0,log(x^2-8*x+8)>=0}) and that's all !!!
Domain found !!!!!
Algebraically, not graphically B-) ^_^
Best,

Aries ;-)
11-13-2019, 09:49 AM
Post: #8
 teerasak Member Posts: 63 Joined: Jun 2019
RE: [CAS] find domain for function?
Perhaps with past release of firmware, it could not do so.

With the latest release (2018 10 16), I found domain command which can be used to find domain:

For example, to find domain of f(x) = 1/(x-1), simply use:
domain(1/(x-1),x)
it will return x<>1

I'm just thinking howto find range of this function. Perhaps the following command can help:

domain(solve(y=1/(x-1),x),y)
it will return y<>0
11-14-2019, 09:00 AM
Post: #9
 Aries Member Posts: 159 Joined: Oct 2014
RE: [CAS] find domain for function?
Not all functions are invertible in their domain, y=x^2 is non-invertible in its domain.
What if f(x) is non-invertible ?
A function f is invertible if and only if it's injective, that is whenever f(x)=f(y), x=y.
In certain cases restricting domain of f(x) could make it invertible.
Best,

Aries
11-14-2019, 11:20 AM
Post: #10
 teerasak Member Posts: 63 Joined: Jun 2019
RE: [CAS] find domain for function?
@ Aries

You can use domain(solve(y=x^2,x),y). The calculator will give result y>=0

However, this may not work with implicit function e.g abs(x) + abs(y) = 4
11-15-2019, 01:34 AM
Post: #11
 CyberAngel Member Posts: 298 Joined: Jul 2018
RE: [CAS] find domain for function?
(11-14-2019 11:20 AM)teerasak Wrote:  @ Aries

You can use domain(solve(y=x^2,x),y). The calculator will give result y>=0

However, this may not work with implicit function e.g abs(x) + abs(y) = 4

Would it help to set:
assume(x>=0)
assume(y>=0)
11-15-2019, 09:43 AM
Post: #12
 Aries Member Posts: 159 Joined: Oct 2014
RE: [CAS] find domain for function?
As for the image (range) of f it's supposed to work with implicit functions as well but I suggest drawing a sketch or looking for maximum and minimum of y or even analysing f.
Best,

Aries
11-18-2019, 06:06 AM
Post: #13
 cyrille de brĂ©bisson Senior Member Posts: 1,047 Joined: Dec 2013
RE: [CAS] find domain for function?
hello,

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
11-18-2019, 12:13 PM
Post: #14
 Aries Member Posts: 159 Joined: Oct 2014
RE: [CAS] find domain for function?
Well, of course it does
Best,

Aries
11-20-2019, 04:01 AM
Post: #15
 lrdheat Senior Member Posts: 810 Joined: Feb 2014
RE: [CAS] find domain for function?
tabvar is one of my favorite items on the HP 50g, and on the Prime!
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)