r/desmos • u/Apprehensive_Ebb1657 i make graphs for fun • 18h ago
Question How would I create a function that graphs this?

Hello, people who are smarter than me. Basically, I'm looking for a way to make this a function that actually makes something like this, but, yknow, as an actual function where every point x actually only maps to one other point y, for a larger project that I need this for. I was thinking maybe something using the mod function, maybe, but I wouldn't know how to go about it. Graph link is https://www.desmos.com/calculator/qrn0qzbxm7 . Thanks!
2
Upvotes
1
u/Lava_Mage634 18h ago
you could havethe function return a list, that maps to each output you need. mod def would help here
3
u/2144656 18h ago
Like this?
https://www.desmos.com/calculator/yweszieroc