[英]How to render \left( \right) in python
I'm trying to print a Latex expression in the Ipython terminal, so I'm using this code:我正在尝试在 Ipython 终端中打印 Latex 表达式,因此我正在使用以下代码:
from IPython.display import display, Math, Latex
display(Math("$$E[\hat{r_x}(k)] = \dfrac{1}{N} \sum_{n = |k|}^{N-1} \
E[x(n)x^*(n-|k|)]=$$"))
display(Math("$$= \dfrac{1}{N} \sum_{n = |k|}^{N-1} r_x(|k|) = \
\dfrac{r_x(k)}{N} (N-|k|) = r_x(k) \
( 1-\dfrac{|k|}{N} )$$"))
But the parenthesis around the fraction doesn't look good, so I tried to add \\left( \\right)
to the expression, but it just shows me this:但是分数周围的括号看起来不太好,所以我尝试将
\\left( \\right)
到表达式中,但它只显示给我:
I hope someone can help me.我希望有一个人可以帮助我。 Thank you for your responses.
谢谢你的回复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.