Hacker News new | past | comments | ask | show | jobs | submit login
Asking ChatGPT about cases from “Counterexamples in Analysis” (nostalgebraist.tumblr.com)
1 point by perihelions on March 17, 2023 | hide | past | favorite | 2 comments



In case someone wants an example of a function which is continuous nowhere, but whose absolute value is continuous everywhere:

f(x) = 1 if x is rational

f(x) = -1 if x is not rational

Edit: in all this excitement, I should've just read to the end of the article

Edit: for the second question, take the function:

f(x) = 0 if: the binary representation of it contains infinite 1s

f(x) = total # 1s in the binary representation of x if: the binary representation has a finite number of 1s





Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: