# Codes for graphing tangent/cotangent functions

**URL:** <https://cl.desmos.com/t/codes-for-graphing-tangent-cotangent-functions/4070>\
**Category:** Questions\
**Created:** [February 16, 2022, 3:37am UTC](https://cl.desmos.com/t/codes-for-graphing-tangent-cotangent-functions/4070 "2022-02-16T03:37:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karolyn\_Crockett](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/karolyn_crockett/32/3360_2.png) [@Karolyn\_Crockett](https://cl.desmos.com/u/Karolyn_Crockett)\
**Post date:** [February 16, 2022, 3:37am UTC](https://cl.desmos.com/t/codes-for-graphing-tangent-cotangent-functions/4070/1 "2022-02-16T03:37:47Z")

</div>

I have created a review activity where students drag points to make asymptotes and graphs. When all of the points are at the correct coordinates, the graphs appear.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/1/1b574d9162f72987b7669112e0dd7a73855ad961.png)

Problem is that the graph is not appearing. This is y=tan2x The points are correct, I am counting by values that should give exact y-values for the equation.

I have defined my tangent function as  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/a/a592f164b1ce0fe63ce6e4d3c684f48e3ea4eb33.png)

The function stays undefined at correct6 and correct4 even when I drag my points to exactly correct coordinates.

Is there a different way to define the function?

---

<div class="post-metadata">

**Author:** ![Karolyn\_Crockett](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/karolyn_crockett/32/3360_2.png) [@Karolyn\_Crockett](https://cl.desmos.com/u/Karolyn_Crockett)\
**Post date:** [February 16, 2022, 4:09am UTC](https://cl.desmos.com/t/codes-for-graphing-tangent-cotangent-functions/4070/2 "2022-02-16T04:09:08Z")

</div>

I figured something out.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/3/39847f65ae5cb7be208beea01ca1aa72a5c99805.png)
