Beliavsky / ChatGPT-Fortran-generator

Python scripts to generate Fortran code by ChatGPT, compile it, correct errors, and run it
4 stars 0 forks source link

Generalize the script to other programming languages #2

Open Beliavsky opened 1 year ago

Beliavsky commented 1 year ago

Especially C++, C, and Python. Maybe R.

Beliavsky commented 1 year ago

Do Python first, because it has been said that ChatGPT is especially good at Python. See if it more often gives the right answer in Python than Fortran for some prompts such as

compute Euler's number in a variable called `euler` using a Taylor series with the number of terms `nterms` equal to 1000