LaTeX forum ⇒ TeXworkswhy this code for formula is wrong?

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
yaozhao
Posts: 27
Joined: Sat Oct 27, 2018 10:38 pm

why this code for formula is wrong?

Postby yaozhao » Mon Nov 12, 2018 4:08 am

Sample question:
If the long-run total cost curve for each firm is given by $TC=1000+100Q-10$Q^2$+$Q^3$$

yaozhao
Posts: 27
Joined: Sat Oct 27, 2018 10:38 pm

Postby yaozhao » Mon Nov 12, 2018 4:08 am

I want to type:

TC=1000+100Q-10Q^2+Q^3

User avatar
Stefan Kottwitz
Site Admin
Posts: 9244
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Nov 12, 2018 8:36 am

$ is the symbol to start or to end a math environment. In the code above, the math mode was ended and then started and ended within the same formula. Here is how it should be done:

$TC=1000+100Q-10Q^2+Q^3$

Stefan
Site admin


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 0 guests