Any way of calculating square root of a negative number on HP 35S?
01-22-2019, 10:32 PM
Post: #1
 zeno333 Member Posts: 189 Joined: Mar 2015
Any way of calculating square root of a negative number on HP 35S?
If one enters a negative number and take the square root, it gives back an error...the 35S has some imaginary support, but apparently not as transparent as the 42S et5c where it gives back the complex result...Is there any way of doing square roots of a negative number on the 35S and getting back a complex result?
01-22-2019, 10:37 PM
Post: #2
 Thomas Klemm Senior Member Posts: 1,447 Joined: Dec 2013
RE: Any way of calculating square root of a negative number on HP 35S?
Cf. 35s and SQRT of Negative Numbers

Cheers
Thomas
01-22-2019, 10:40 PM
Post: #3
 Valentin Albillo Senior Member Posts: 591 Joined: Feb 2015
RE: Any way of calculating square root of a negative number on HP 35S?
(01-22-2019 10:32 PM)zeno333 Wrote:  IIs there any way of doing square roots of a negative number on the 35S and getting back a complex result?

Try;

0.5
yx
.

V.
.

Find All My HP-related Materials here:  Valentin Albillo's HP Collection

01-23-2019, 12:08 AM
Post: #4
 Thomas Klemm Senior Member Posts: 1,447 Joined: Dec 2013
RE: Any way of calculating square root of a negative number on HP 35S?
(01-22-2019 10:40 PM)Valentin Albillo Wrote:  0.5
yx

Based on Egan's test this leads to:

INVALID y^x
01-23-2019, 08:50 AM
Post: #5
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: Any way of calculating square root of a negative number on HP 35S?
(01-22-2019 10:32 PM)zeno333 Wrote:  Is there any way of doing square roots of a negative number on the 35S and getting back a complex result?

There is a simple rule:
The 35s usually tries to return a real result. If no real result exists, it returns an error.
But if at least one argument is complex, it returns a complex result.

So there is an easy solution: use 0,5 i 0 yx.

–2 [ENTER] 0,5 i 0 [yx] => 0 i 1,4142....

Dieter
01-24-2019, 04:15 AM
Post: #6
 zeno333 Member Posts: 189 Joined: Mar 2015
RE: Any way of calculating square root of a negative number on HP 35S?
(01-23-2019 08:50 AM)Dieter Wrote:
(01-22-2019 10:32 PM)zeno333 Wrote:  Is there any way of doing square roots of a negative number on the 35S and getting back a complex result?

There is a simple rule:
The 35s usually tries to return a real result. If no real result exists, it returns an error.
But if at least one argument is complex, it returns a complex result.

So there is an easy solution: use 0,5 i 0 yx.

–2 [ENTER] 0,5 i 0 [yx] => 0 i 1,4142....

Dieter

That method works with the power function, but does not work with the sqrt key if one enters -2 i 0 and then chooses the sqrt key. So entering a number using complex input does not work for all functions.
01-24-2019, 08:49 AM
Post: #7
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: Any way of calculating square root of a negative number on HP 35S?
(01-24-2019 04:15 AM)zeno333 Wrote:  That method works with the power function, but does not work with the sqrt key if one enters -2 i 0 and then chooses the sqrt key. So entering a number using complex input does not work for all functions.

Right, the 35s does not support complex arguments for all of its functions. The available ones are mentioned in the manual. √x is not one of them. So simply use the power function instead. This is the way to calculate complex square roots on the 35s.

Dieter
 « Next Oldest | Next Newest »

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