Hacker Newsnew | past | comments | ask | show | jobs | submit | smashers1114's commentslogin

Just tested it out and got the following:

=========

To find the value of foo applied to bar, we need to first determine the values of both foo and bar. Let's start with bar, the circumference of a circle with radius 1:

Circumference (C) = 2 * π * r where r is the radius.

In this case, r = 1, so:

bar = C = 2 * π * 1 = 2π

Now, let's move on to foo. Since foo is a function that calculates the sinus of its first argument, we need to find the sine of bar (2π):

foo(bar) = sin(2π)

The sine function is periodic with a period of 2π, which means that sin(2π) is equal to sin(0). The value of sin(0) is 0. Therefore:

foo(bar) = sin(2π) = 0

======= So I think it evaluated correctly here unless I have made a dumb mistake in reading your prompt myself.


So it definitely does a little bit more than just dumping math queries to a CAS. Intriguing.


Not true of my friend and coworker group. You should think carefully of confounding factors before taking anecdotal data and extrapolating to something that applies to a much larger group.


Sounds kinda like "The Last Question" by Asimov, but not quite. I might have thought about it partly because of the anecdote about it being hard to remember. https://en.wikipedia.org/wiki/The_Last_Question#History


Its quite similar, I agree! Unfortunately not the same story. I appreciate it nonetheless!


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

Search: