Solving Computational Problems
and Writing Code

ChatGPT with Wolfram plugin


Straightforward computations are carried out by Wolfram|Alpha

Calories in a cubic mile of butter


Calories burned running


ln( (volume of the universe) / (volume of the Earth) )


Examples of simple ‘inlined’ computations (no special prompting)

loglogplot of log(lcm(1,3,5,...,n)) and log(lcm(2,4,6,...,n))


Longest letter-ordered English words


Three dice probabilities


The importance of the prompt

Prelude


Prompt engineering


Possible prompt fragments of relevance for the Wolfram plugin


Prompts for using mainly Wolfram Language API


Use Wolfram Language explicitly to solve problems

Geometric sequence poodle litter


Helios’s cattle herd


exp(x) partial sums


Relativistic baseball


US states — European countries


Fibonacci primes (2 calls)


ChatGPT’s knowledge of Wolfram Language

Recursive definition


Replacement rule


HermiteH plot


Euclidean algorithm


Generating Wolfram Language code

Continued fraction of concatenated primes


Dog allometry


Ordered random sequences


Pentagon coverage


Shortest tour polygon


The power of checking and improving code

Stern-Brocot tree


3D map cycles


Now also available: Import[]

arXiv quant-ph titles from last week


Make use of ChatGPT’s overall knowledge

1D Anderson model


Born-Infeld Lagrangian


Make datasets


Running the same task twice

Faulhaber 1


Faulhaber 2
