Formatting math and equations

I added the following rule to my prompt to format equations in the output, but it’s not working. It’s still giving me output with raw formatting symbols, like '' and ‘{}’ etc.
“- Use $$ notation for latex to properly format equations.”

Hi @ggonzo47,

Try adding the following on your Role:
Render math equations with LaTex, enclose $$ for block $ for inline
or
Present math equations in LaTeX format/syntax (All LaTex must be enclosed in $$ for block or $ for inline)

Neither of those worked. Still gives me output like this example:
“[ A = \pi r^2 ]”

BTW, if it helps, I’m using Claude-3-5-Sonnet

I was able to get the chatbots to output math equations properly using the Latex formatting instructions that Stephen provided.

What’s not working for you? Can you provide screenshots of the builder that side-by-side shows both the prompt and the output?

The problem is not in rendering equations provided in the role instructions, but rather rendering equations in the output. Here’s an example:

Make a quantitative question on Newton’s laws.

Certainly! I’ll create a quantitative question on Newton’s laws. Let me search for some realistic values to use in the problem.

Great! Let’s use some realistic values to create a quantitative problem involving Newton’s second law.

Quantitative Question on Newton’s Laws

A 1000 kg car accelerates from rest to a speed of 27.8 m/s (100 km/h) in 10 seconds. Calculate the net external force acting on the car during this acceleration.

Given:

  • Mass of the car, ( m = 1000 , \text{kg} )
  • Final velocity, ( v = 27.8 , \text{m/s} )
  • Initial velocity, ( u = 0 , \text{m/s} )
  • Time, ( t = 10 , \text{s} )

Solution:

  1. Calculate the acceleration: [ a = \frac{v - u}{t} = \frac{27.8 , \text{m/s} - 0 , \text{m/s}}{10 , \text{s}} = 2.78 , \text{m/s}^2 ]

  2. Apply Newton’s second law: [ F_{\text{net}} = m \cdot a = 1000 , \text{kg} \cdot 2.78 , \text{m/s}^2 = 2780 , \text{N} ]

So, the net external force acting on the car is ( 2780 , \text{N} ).

Hey Gonzo, that screenshot includes both the role and the output.

I’m not sure what’s not working for you. Can you include screenshots of your pickaxe outputs that are not formatted properly?