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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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