# tanning

**URL:** <https://boards.straightdope.com/t/tanning/37628>\
**Category:** Factual Questions\
**Created:** [October 20, 2000, 3:48am UTC](https://boards.straightdope.com/t/tanning/37628 "2000-10-20T03:48:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbird3000](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jbird3000](https://boards.straightdope.com/u/jbird3000)\
**Post date:** [October 20, 2000, 3:48am UTC](https://boards.straightdope.com/t/tanning/37628/1 "2000-10-20T03:48:02Z")

</div>

Alright…

tan 90 = undefined  
cot 90 = 0

so 1/undefined=0

Is this always true?

---

<div class="post-metadata">

**Author:** ![Punoqllads](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@Punoqllads](https://boards.straightdope.com/u/Punoqllads)\
**Post date:** [October 20, 2000, 3:55am UTC](https://boards.straightdope.com/t/tanning/37628/2 "2000-10-20T03:55:35Z")

</div>

No. 1/undefined = undefined. The result of any operation involving an undefined value is undefined.

---

<div class="post-metadata">

**Author:** ![AWB](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@AWB](https://boards.straightdope.com/u/AWB)\
**Post date:** [October 20, 2000, 3:56am UTC](https://boards.straightdope.com/t/tanning/37628/3 "2000-10-20T03:56:13Z")

</div>

> [@](#):
>
> \*Originally posted by jbird3000 \*  
> \*\*Alright…
> 
> tan 90 = undefined  
> cot 90 = 0
> 
> so 1/undefined=0
> 
> Is this always true? \*\*

Nope. One might say never.

tan x = sin x / cos x  
cot x = cos x / sin x

tan x is undefined when cos x = 0, i.e., x = 90 + 180k, k in the set of integers.  
cot x is undefined when sin x = 0, i.e., x = 180k, k in the set of integers.

---

<div class="post-metadata">

**Author:** ![Smeghead](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Smeghead](https://boards.straightdope.com/u/Smeghead)\
**Post date:** [October 20, 2000, 4:31am UTC](https://boards.straightdope.com/t/tanning/37628/4 "2000-10-20T04:31:28Z")

</div>

Dammit. And here I was getting all ready to give a lecture on the dangers of excessive UV light exposure.

---

<div class="post-metadata">

**Author:** ![jbird3000](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jbird3000](https://boards.straightdope.com/u/jbird3000)\
**Post date:** [October 20, 2000, 6:13pm UTC](https://boards.straightdope.com/t/tanning/37628/5 "2000-10-20T18:13:54Z")

</div>

Well i crammed cot x into a graphing calculator and I got a y value of 0 when x was 90.

The way I figure it

cot 90 = 0  
1/tan 90 = 0  
tan 90 = undefined  
1/undefined = 0

what’s wrong with this logic?

---

<div class="post-metadata">

**Author:** ![Punoqllads](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@Punoqllads](https://boards.straightdope.com/u/Punoqllads)\
**Post date:** [October 20, 2000, 6:35pm UTC](https://boards.straightdope.com/t/tanning/37628/6 "2000-10-20T18:35:10Z")

</div>

The error is that not all mathematical operations are reversable. Dividing any number by zero gives the undefined value. Any calculation involving the undefined value, by definition, gives the undefined value.

1/undefined = undefined  
1 + undefined = undefined  
undefined[sup]3[/sup] = undefined  
undefined \* 3.14159265358979323844 = undefined

Capisce?

---

<div class="post-metadata">

**Author:** ![Joe\_Cool](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Joe\_Cool](https://boards.straightdope.com/u/Joe_Cool)\
**Post date:** [October 20, 2000, 8:35pm UTC](https://boards.straightdope.com/t/tanning/37628/7 "2000-10-20T20:35:09Z")

</div>

This is actually a battle over semantics. “Undefined” as used here means Infinity. There are Undefined values that aren’t so simple (0/0, for example), but this one is fairly simple.

What you’re really saying is this:

```auto

Lim sin(x)
x->pi/2 ------ = infinity.
           cos(x)

```

In english, no matter how close you get to pi/2, as long as you’re not actually THERE, you have a real value for |tan(x)| (I don’t want to bother with negatives) that can be calculated. And the closer you get, the bigger that value gets. Effectively (although not technically), dividing by zero gives you infinity. Try it: Divide a cake into Infinity equal pieces. How big is each piece? ZERO.

In the same sense, dividing by infinity gives an effective result of zero. This is used in an application of L’Hopital’s rule:

```auto

If f(c)=0 & g(c)=0, then:
Lim f(x) f'(x) f"(x)
x->c ---- = ----- = -----
       g(x) g'(x) g"(x)

BUT, If f(c)=undefined (division by zero) and g(c)=undefined, it still works, because:
Lim f(x) 1/g(x) 1/(a/0) 0/a 0
x->c ---- = ------ because ------- = --- = -
      g(x) 1/f(x) 1/(b/0) 0/b 0

```

---

<div class="post-metadata">

**Author:** ![Dan\_Tana](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@Dan\_Tana](https://boards.straightdope.com/u/Dan_Tana)\
**Post date:** [October 20, 2000, 8:50pm UTC](https://boards.straightdope.com/t/tanning/37628/8 "2000-10-20T20:50:13Z")

</div>

I’m sorry, but I can’t help but throw in my two cents here. I have absolutly NO clue as to what any of you folks are talking about. For all I know you could be discussing the dimensions of a solar system or some new formula on splitting atoms. My only reason for responding to this, is to represent the common idiot. I would also like to congratulate all of you who seem to have exceled at a level of mathematics that I can only imagine. So in saying that, Bravo! and keep up the number crunching.

---

<div class="post-metadata">

**Author:** ![Punoqllads](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@Punoqllads](https://boards.straightdope.com/u/Punoqllads)\
**Post date:** [October 20, 2000, 9:40pm UTC](https://boards.straightdope.com/t/tanning/37628/9 "2000-10-20T21:40:08Z")

</div>

Quibbles:

```auto

   lim sin(x)
x -> pi/2+ ------ = infinity
           cos(x)
---------------------------------
   lim sin(x)
x -> pi/2- ------ = -infinity
           cos(x)

```

So, the limit is not infinity, but truly undefined.

L’Hôpital’s rule, as you state, is used when both the top and the bottom of the fraction converge to zero. As sin(pi/2) = 1, it cannot be invoked. So, in short:

1/infinity = 0, and 1/(-infinity) = 0  
therefore 1/tan(pi/2) = cot(pi/2) = 0  
**but**  
1/undefined = undefined
