# Inaccuracies with complex mode

**URL:** <https://cl.desmos.com/t/inaccuracies-with-complex-mode/7539>\
**Category:** Bug Reports\
**Created:** [November 20, 2024, 11:02pm UTC](https://cl.desmos.com/t/inaccuracies-with-complex-mode/7539 "2024-11-20T23:02:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Calvin\_Price](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/calvin_price/32/6364_2.png) [@Calvin\_Price](https://cl.desmos.com/u/Calvin_Price)\
**Post date:** [November 20, 2024, 11:02pm UTC](https://cl.desmos.com/t/inaccuracies-with-complex-mode/7539/1 "2024-11-20T23:02:23Z")

</div>

I was messing around with the new complex mode and I entered e^(ipi/4)-sqrt(2)/2(1+i) and it was a very small number but not 0 even though e^(ipi/4) IS (sqrt2/2)i+sqrt2/2

---

<div class="post-metadata">

**Author:** ![Guzman\_Tierno](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/guzman_tierno/32/6149_2.png) [@Guzman\_Tierno](https://cl.desmos.com/u/Guzman_Tierno)\
**Post date:** [November 21, 2024, 3:17pm UTC](https://cl.desmos.com/t/inaccuracies-with-complex-mode/7539/2 "2024-11-21T15:17:50Z")

</div>

Hello!  
the problem is not due to complex numbers but to approximations in evaluating sin(pi/4) and sqrt(2), try this:

sin(pi/4)-sqrt(2)/2

you’ll get the same tiny number.

---

<div class="post-metadata">

**Author:** ![Calvin\_Price](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/calvin_price/32/6364_2.png) [@Calvin\_Price](https://cl.desmos.com/u/Calvin_Price)\
**Post date:** [January 8, 2025, 9:34pm UTC](https://cl.desmos.com/t/inaccuracies-with-complex-mode/7539/3 "2025-01-08T21:34:13Z")

</div>

you’re right, its probably due to a rounding error with functions that aren’t easily defined efficiently like factorial and sine
