What task can Chat GPT-o1 preview not solve?
The question is serious. I've given him some really difficult tasks, and he always comes up with the right solutions.
The question is serious. I've given him some really difficult tasks, and he always comes up with the right solutions.
Hello! I have a question about a Java program that is supposed to calculate the trajectory of a cannonball. The user can choose the speed and angle α themselves (v must be between 300 and 900 km/h, and α between 1 and 90°). Air resistance, etc., are not important. However, the flight calculation doesn't work…
Hello community! I'd like to learn programming. So, I'm looking for a website where I can create programs online and where there are plenty of tutorials on YouTube. Does anyone have any recommendations? Or is this the wrong approach, and what should I do instead? How do I choose the right programming language? My project…
I wanted to learn how to develop games in Unity using a YouTube tutorial. When I wrote a movement script to move the player left and right, I got errors, but not the script from the video. Can someone help me, because I'd like to continue learning. It's a lot of fun. (The first image…
Two hours ago I was still on the app and chatting normally until I had a connection problem even though I had internet. So I solved it and tried to get into the app, but it didn't work. I kept getting kicked out. Then I tried it on a different phone and it worked. They…
Hello In my website on hPage I want to insert PHP stuff into the HTML code. However, the HTML editor complains. Do I have to save the page with a PHP extension? If so, how do I do that?
I would like to write my own books later (I'm currently writing my first) and later sell them on a personal website, but how do I create my own website and then sell my things or books?
Please ask for a C program that gives π exactly to 50 digits. The result can be easily checked (e.g. here).
The first version of ChatGPT was hopelessly overwhelmed and could not start with clear hints of the mistake.
sounds plausible to me what he gives me:
Of course! Here is a C program that uses the GMP library to accurately calculate and output π to 50 decimal places:
#include
#include
int main() {
// Set the desired ( precisionin bits)
mpf_set_default_prec(170); // ~50 decimal digits
mpf_t pi, sum, term, numerator, denominator, temp1, temp2, C;
mpz_t k, k6, fact_k3, fact_k, pow_minus1_k, A, B, D, E, temp_z;
// Initialize variable
mpf_init(pi);
mpf_init(sum);
mpf_init(term);
mpf_init(numerator);
mpf_init(denominator);
mpf_init(temp1);
mpf_init(temp2);
mpf_init(C);
mpz_init(k);
mpz_init(k6);
mpz_init(fact_k3);
mpz_init(fact_k);
mpz_init(pow_minus1_k);
mpz_init(A);
mpz_init(B);
mpz_init(D);
mpz_init(E);
mpz_init(temp_z);
mpz_set_ui(k, 0);
mpf_set_ui(sum, 0);
// Constants
mpf_set_d(C, 426880.0);
mpf_sqrt_ui(temp1, 10005);
mpf_mul(C, C, temp1); // C = 426880 * sqrt(10005)
// Number of terms to compute
int N=3; // Adjust N desired for accuracy
for (int i = 0; i < N; i++) {
// (-1)^k
mpz_pow_ui(pow_minus1_k, mpz_init_set_si(temp_z, -1), i);
// (6k)
mpz_mul_ui(k6, k, 6);
mpz_fac_ui(k6, mpz_get_ui(k6));
// k!
mpz_fac_ui(fact_k, mpz_get_ui(k));
// (3k)
mpz_mul_ui(temp_z, k, 3);
mpz_fac_ui(fact_k3, mpz_get_ui(temp_z));
// numerator = (-1)^k * (6k)! * (13591409 + 545140134k)
mpz_mul_ui(A, k, 545140134);
mpz_add_ui(A, A, 13591409);
mpz_mul(A, A, k6);
mpz_mul(A, A, pow_minus1_k);
// denominator = (3k) * (k!)^3 * (640320)^(3k)
mpz_pow_ui(B, fact_k, 3);
mpz_mul(B, B, fact_k3);
mpz_pow_ui(D, mpz_set_ui(temp_z, 640320), 3 * mpz_get_ui(k));
mpz_mul(B, B, D);
// term = numerator / denominator
mpf_set_z(numerator, A);
mpf_set_z(denominator, B);
mpf_div(term, numerator, denominator);
// sum + term
mpf_add(sum, sum, term);
// Increment k
mpz_add_ui(k, k, 1);
}
// pi = C / sum
mpf_div(pi, C, sum);
// Print pi to 50 decimal places
gmp_printf(“π = %.50Ff\n”, pi);
// Clear variable
mpf_clear(pi);
mpf_clear(sum);
mpf_clear(term);
mpf_clear(numerator);
mpf_clear(denominator);
mpf_clear(temp1);
mpf_clear(temp2);
mpf_clear(C);
mpz_clear(k);
mpz_clear(k6);
mpz_clear(fact_k3);
mpz_clear(fact_k);
mpz_clear(pow_minus1_k);
mpz_clear(A);
mpz_clear(B);
mpz_clear(D);
mpz_clear(E);
mpz_clear(temp_z);
return 0;
}
Compilation and execution instructions:
1.Install GMP library:
• Under Debian/Ubuntu:
sudo apt-get install libgmp-dev
• Under Fedora:
sudo dnf install gmp-devel
• Under macOS with Homebrew:
brew install gmp
Two.Save program:
• Save the above code in a file called pi.c.
3.Compiling a program:
gcc -o pi pi.c -lgmp -lm
4.Run the program:
./pi
Notes:
•Set accuracy: The variable N in the loop determines the number of terms used for the calculation. As a rule, 3 iterations are sufficient for 50 decimal places. You can increase N to achieve higher accuracy.
•Chudnovsky algorithm: This program uses the Chudnovsky algorithm known for its rapid convergence in the calculation of π.
•GMP library: The GNU Multiple Precision Arithmetic Library (GMP) allows calculations with very high accuracy and is therefore ideal for this problem.
Example output:
π = 3.14159265358979323846264338327950288419716939937510
This program calculates and gives π exactly to 50 decimal places. If you have more questions or need help, let me know!
It looks just weird as he used for the code sign so it looks better
Impressive! Unfortunately, the program does not compile (mpz_init_set_si() and mpz_set_ui() deliver void.
When you fix it, you get
π = 3.141592653589793238462643327950288419716767885485
The boldly printed numbers are correct. Only with N=4 is everything right.
After all, a lot has improved enormously in recent years. But if my assistant gave me code that didn’t compile and spit out wrong results after the repair, I’d throw them out.
You may like to point out to ChatGPT her mistakes and tell me how she’s dealing with it now. Two years ago she was very susceptible to criticism, but did not learn anything from it.
Here’s the code:
#include
#include
int main() {
// Set the desired ( precisionin bits)
mpf_set_default_prec(170); // ~50 decimal digits
mpf_t pi, sum, term, numerator, denominator, temp1, temp2, C;
mpz_t k, k6, fact_k3, fact_k, pow_minus1_k, A, B, D, E, temp_z;
// Initialize variable
mpf_init(pi);
mpf_init(sum);
mpf_init(term);
mpf_init(numerator);
mpf_init(denominator);
mpf_init(temp1);
mpf_init(temp2);
mpf_init(C);
mpz_init(k);
mpz_init(k6);
mpz_init(fact_k3);
mpz_init(fact_k);
mpz_init(pow_minus1_k);
mpz_init(A);
mpz_init(B);
mpz_init(D);
mpz_init(E);
mpz_init(temp_z);
mpz_set_ui(k, 0);
mpf_set_ui(sum, 0);
// Constants
mpf_set_d(C, 426880.0);
mpf_sqrt_ui(temp1, 10005);
mpf_mul(C, C, temp1); // C = 426880 * sqrt(10005)
// Number of terms to compute
int N=3; // Adjust N desired for accuracy
for (int i = 0; i < N; i++) {
// (-1)^k
mpz_pow_ui(pow_minus1_k, mpz_init_set_si(temp_z, -1), i);
// (6k)
mpz_mul_ui(k6, k, 6);
mpz_fac_ui(k6, mpz_get_ui(k6));
// k!
mpz_fac_ui(fact_k, mpz_get_ui(k));
// (3k)
mpz_mul_ui(temp_z, k, 3);
mpz_fac_ui(fact_k3, mpz_get_ui(temp_z));
// numerator = (-1)^k * (6k)! * (13591409 + 545140134k)
mpz_mul_ui(A, k, 545140134);
mpz_add_ui(A, A, 13591409);
mpz_mul(A, A, k6);
mpz_mul(A, A, pow_minus1_k);
// denominator = (3k) * (k!)^3 * (640320)^(3k)
mpz_pow_ui(B, fact_k, 3);
mpz_mul(B, B, fact_k3);
mpz_pow_ui(D, mpz_set_ui(temp_z, 640320), 3 * mpz_get_ui(k));
mpz_mul(B, B, D);
// term = numerator / denominator
mpf_set_z(numerator, A);
mpf_set_z(denominator, B);
mpf_div(term, numerator, denominator);
// sum + term
mpf_add(sum, sum, term);
// Increment k
mpz_add_ui(k, k, 1);
}
// pi = C / sum
mpf_div(pi, C, sum);
// Print pi to 50 decimal places
gmp_printf(“π = %.50Ff\n”, pi);
// Clear variable
mpf_clear(pi);
mpf_clear(sum);
mpf_clear(term);
mpf_clear(numerator);
mpf_clear(denominator);
mpf_clear(temp1);
mpf_clear(temp2);
mpf_clear(C);
mpz_clear(k);
mpz_clear(k6);
mpz_clear(fact_k3);
mpz_clear(fact_k);
mpz_clear(pow_minus1_k);
mpz_clear(A);
mpz_clear(B);
mpz_clear(D);
mpz_clear(E);
mpz_clear(temp_z);
return 0;
}
So I can’t say anything about Mathe, but some controversial information is still missing GPT-4o.
If you ask zb which was the last episode of series XY, then it still fails, despite online connection.
Or when it comes to political topics or sights etc.
But: a lot has happened since GPT 3.5.
o1 has no online connection only gpt 4o
O1?
Is that a new version?
I’m sorry, I misunderstood that.
What are you doing?
If I have 4o question (with online connection) this comes:
The last episode of “Aktenzeichen XY… unresolved” was on 6. November 2024 in the ZDF. The following cases were dealt with in this consignment:
•Shots on politicians: An unknown perpetrator shot in the night at 19. March 2023 in Hattenhofen (Landkreis Göppingen, Baden-Württemberg) through a window on FDP politician and farmer Georg Gallus, who slept during the course. Gallus was hit by four bullets and had to be operated.
•Unknown dead in Hannover: Two students found on 20. August 1994, the skeletal corpse of a woman at a Bundeswehr site in Hannover. Investigations showed that it was killed at least two years before. The identity of the woman is still unknown.
•Cold Case from Cologne: Andrea Weltzer (28) became 7. January 1992 unconscious and found with life-threatening injuries on a road in Cologne. She died shortly after that in the hospital of her severe stab injuries. The investigators have now found active male DNA and hope for new hints.
•Double driver flight in Austria: Jeanette (19) became 17. June 2023 in Obertrum am See captured by a car. The driver left the injured young woman on the street and continued to drive. Shortly afterwards, it was overwhelmed by a second car, whose driver also escaped. The driver of the first car has now reported to the police; the second driver is still looking.
•Intrusion in Trier: Two unfamiliar men hit the 26th night. May 2023 into the house of an 80-year-old woman in Trier. They tied the senior and searched the house for valuables. The perpetrators escaped with jewelry, four cell phones, a vault and an older digital camera.
The next issue of “Acts XY… unresolved” is for the 11. December 2024 planned.
I tried everything that is difficult and complex like math, engineer and also German grammatical question and he always answers correctly
Yes, this is just the “thinks” before she writes and checks her answers. This is another huge difference between 4o and o1 preview
Try to ask “how many r’s are there in strawberry” – so far there has not been a single model before o1, as to give the right answer, i.e. three. I don’t know if they fixed it in o1 now. Also, you can ask to cube, then GPT models always came out for the first attempt.
The question is whether it answers the answers independently with the help of the Language Model or whether it should use a code interpreter. This type of reasoning, i.e., knowing the appropriate limitations, is not a strength of language models, and that doesn’t change either, because you can now philosophize it for yourself twenty seconds before there is a correct answer. It might be better, but not solved.
Otherwise, just ask some specific question about any topic you know very well and it will say more or less instant somewhere something that is not quite right.
At o1, there is a real thing and I’ve tried it in the topics that I know myself and have also put tasks in this area that were not public, so not in the Google database he has.
I guess she did. here 🙂
Of course there is a matching xkcd comic to it… ^^
Ask ChatGPT something impossible, like the lottery numbers of tonight.
According to ChatGPT, in the word “herdberry” are three R when I ask him
But not at o1 preview
It’s true for me sometimes. Once he even said 1 R
Yes in the old models but not at o1 preview it is just about the
I don’t know the individual versions, but with counts and remnants it is very difficult.
When I ask for a text with 800 words, I get sülze with 350 words. If I’m going to tell you what’s going on, there’s only garbage coming out with 1000 apologies.
That’s because he can only make certain things counting on performances if these But theoretically are screwed up, then he could loosen that
Now, words count, however, can find any spelling program or words with the same ending to make mime from it. For the longer texts, I’m right.
However, the connection is clear and ChatGPT has confirmed it itself. Also on question. You can ask.
This can’t be because it runs over cloud and the requests run on the Open ai server. So your pc has no work.
With me, it already fails on the PC memory. Using ChatGPT allows the PC to freeze completely faster and faster, although I keep the discussions short.
I actually tried o1 and that up to a length of a short book (yet longer would be possible if Open-AI would release more performance)