Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do these models handle renaming? E.g.,

"Let foo be the function that calculates the sinus of its first argument. Let bar be the circumference of a circle with radius one. What is the value of foo applied to bar?



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.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: