# How do you take the X/Y-value of a point?

**URL:** <https://cl.desmos.com/t/how-do-you-take-the-x-y-value-of-a-point/4574>\
**Category:** Questions\
**Created:** [November 17, 2022, 11:44pm UTC](https://cl.desmos.com/t/how-do-you-take-the-x-y-value-of-a-point/4574 "2022-11-17T23:44:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/colin/32/3943_2.png) [@Colin](https://cl.desmos.com/u/Colin)\
**Post date:** [November 17, 2022, 11:44pm UTC](https://cl.desmos.com/t/how-do-you-take-the-x-y-value-of-a-point/4574/1 "2022-11-17T23:44:22Z")

</div>

How do you take the X/Y cords of a point if you cannot have the point defined by variables that are the X/Y cords. For example how would I make function G work in the following graph?

> **[X/Y value of a point](https://www.desmos.com/calculator/az19wifowq)**
>
> X/Y value of a point

---

<div class="post-metadata">

**Author:** ![Daniel\_Wekselgreene](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_wekselgreene/32/1819_2.png) [@Daniel\_Wekselgreene](https://cl.desmos.com/u/Daniel_Wekselgreene)\
**Post date:** [November 18, 2022, 4:50am UTC](https://cl.desmos.com/t/how-do-you-take-the-x-y-value-of-a-point/4574/2 "2022-11-18T04:50:30Z")

</div>

You can access the coordinates of a point with .x and .y

So change x and y in the g function to P.x and P.y and that will pull the coordinates from the P parameter.

---

<div class="post-metadata">

**Author:** ![Colin](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/colin/32/3943_2.png) [@Colin](https://cl.desmos.com/u/Colin)\
**Post date:** [November 18, 2022, 2:51pm UTC](https://cl.desmos.com/t/how-do-you-take-the-x-y-value-of-a-point/4574/3 "2022-11-18T14:51:42Z")

</div>

Thanks! That’s going to simplify a lot of things for me.
