Math & Science ⇒ Bad math environment error
-
- Posts: 1
- Joined: Sat Sep 02, 2023 4:22 am
Bad math environment error
\documentclass[11pt]{article}
\newcommand{\Rho}{\mathrm{P}}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{equation}
\boldsymbol{\dot{\hat\rho}}=\[[\boldsymbol\omega\times]\boldsymbol{\hat\rho}_0}
\end{equation}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Bad math environment error

Your
\[
(just after the equal sign) tries to start a new (displayed) math environment, but you're already in math mode.The last closing brace has no partner, either.
BTW: you're defining \Rho, but you're using \rho. Since (La)TeX is case-sensitive, the definition of \Rho is superfluous at best.
Code: Select all
\documentclass[11pt]{article}%\newcommand{\Rho}{\mathrm{P}}\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb}\begin{document}\begin{equation}\boldsymbol{\dot{\hat\rho}}=[\boldsymbol\omega\times]\boldsymbol{\hat\rho}_0%}\end{equation}\end{document}
KR
Rainer