本文整理汇总了PHP中AppBundle\Entity\Post::setMathematics方法的典型用法代码示例。如果您正苦于以下问题:PHP Post::setMathematics方法的具体用法?PHP Post::setMathematics怎么用?PHP Post::setMathematics使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppBundle\Entity\Post
的用法示例。
在下文中一共展示了Post::setMathematics方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load
//.........这里部分代码省略.........
$article = $article . "\n" . ' 1 & 1 & 0 & 1 & 1';
$article = $article . "\n" . ' \\end{pmatrix}';
$article = $article . "\n" . '\\end{align}';
$article = $article . "\n" . '$$';
$article = $article . "\n" . '';
$article = $article . "\n" . '### 2. Calcul de $\\hat{P}_{in(j)}$ selon le vecteur $p_{in(j)}$';
$article = $article . "\n" . '';
$article = $article . "\n" . '**Formule :** $\\hat{P}_{in(j)} =';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' 0 & -z & y\\\\';
$article = $article . "\n" . ' z & 0 & -x\\\\';
$article = $article . "\n" . ' -y & x & 0';
$article = $article . "\n" . '\\end{pmatrix}$';
$article = $article . "\n" . 'avec $p_{in(j)} = \\begin{pmatrix}x & y & z\\end{pmatrix}^T$';
$article = $article . "\n" . '';
$article = $article . "\n" . '$p_{35(2)} = \\begin{pmatrix}0\\\\0\\\\0\\end{pmatrix}$ donc $\\hat{P}_{in(j)} = O_{3\\times3}$';
$article = $article . "\n" . '';
$article = $article . "\n" . '### 3. Calcul de $dp_{(0)}$ et $d\\varphi_{(0)}$';
$article = $article . "\n" . '';
$article = $article . "\n" . '**Formule :**';
$article = $article . "\n" . '$\\begin{pmatrix}dp_{(0)} \\\\ d\\varphi_{(0)}\\end{pmatrix} =';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' R_{03} & O_{33}\\\\';
$article = $article . "\n" . ' O_{33} & R_{03}';
$article = $article . "\n" . '\\end{pmatrix}.';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' I_{33} & -\\hat{P}_{in(j)}\\\\';
$article = $article . "\n" . ' O_{33} & I_{33}';
$article = $article . "\n" . '\\end{pmatrix}.J_{3(2)}.dq$';
$article = $article . "\n" . 'avec';
$article = $article . "\n" . '$dq = \\begin{pmatrix}dq1 \\\\ \\vdots \\\\ dqn\\end{pmatrix}$';
$article = $article . "\n" . '';
$article = $article . "\n" . 'or $\\hat{P}_{in(j)} = O_{3\\times3}$ donc';
$article = $article . "\n" . '$\\begin{pmatrix}dp_{(0)} \\\\ d\\varphi_{(0)}\\end{pmatrix} =';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' R_{03} & O_{33}\\\\';
$article = $article . "\n" . ' O_{33} & R_{03}';
$article = $article . "\n" . '\\end{pmatrix}.J_{3(2)}.dq$';
$article = $article . "\n" . '';
$article = $article . "\n" . '$R_{03} = R_{12}.R_{23}.R_{34} =';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' 1 & 0 & 0\\\\';
$article = $article . "\n" . ' 0 & 1 & 0\\\\';
$article = $article . "\n" . ' 0 & 0 & 1';
$article = $article . "\n" . '\\end{pmatrix}.';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' c2 & -s2 & 0 \\\\';
$article = $article . "\n" . ' s2 & c2 & 0 \\\\';
$article = $article . "\n" . ' 0 & 0 & 1';
$article = $article . "\n" . '\\end{pmatrix}.';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' 1 & 0 & 0\\\\';
$article = $article . "\n" . ' 0 & 0 & 1\\\\';
$article = $article . "\n" . ' 0 & -1 & 0';
$article = $article . "\n" . '\\end{pmatrix} = ';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' c2 & 0 & -s2\\\\';
$article = $article . "\n" . ' s2 & 0 & c2\\\\';
$article = $article . "\n" . ' 0 & -1 & 0';
$article = $article . "\n" . '\\end{pmatrix}$';
$article = $article . "\n" . '';
$article = $article . "\n" . '$$';
$article = $article . "\n" . '\\begin{align}';
$article = $article . "\n" . '\\begin{pmatrix}dp_{(0)} \\\\ d\\varphi_{(0)}\\end{pmatrix} &=';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' c2 & 0 & -s2 & 0 & 0 & 0\\\\';
$article = $article . "\n" . ' s2 & 0 & c2 & 0 & 0 & 0\\\\';
$article = $article . "\n" . ' 0 & -1 & 0 & 0 & 0 & 0\\\\';
$article = $article . "\n" . ' 0 & 0 & 0 & c2 & 0 & -s2\\\\';
$article = $article . "\n" . ' 0 & 0 & 0 & s2 & 0 & c2\\\\';
$article = $article . "\n" . ' 0 & 0 & 0 & 0 & -1 & 0';
$article = $article . "\n" . '\\end{pmatrix}.';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' -q3 & -q3 & 0 & 0 & 0\\\\';
$article = $article . "\n" . ' 0 & 0 & 0 & 0 & 0\\\\';
$article = $article . "\n" . ' 0 & 0 & 0 & 0 & 0\\\\';
$article = $article . "\n" . ' 0 & 0 & 0 & 0 & -s5\\\\';
$article = $article . "\n" . ' 0 & 0 & 0 & 0 & -c5\\\\';
$article = $article . "\n" . ' 1 & 1 & 0 & 1 & 1';
$article = $article . "\n" . '\\end{pmatrix}.';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' dq1\\\\ dq2\\\\ dq3\\\\ dq4\\\\ dq5';
$article = $article . "\n" . '\\end{pmatrix}\\\\';
$article = $article . "\n" . '&=';
$article = $article . "\n" . '\\begin{pmatrix}';
$article = $article . "\n" . ' - c2.dq1.q3 - c2.dq2.q3\\\\';
$article = $article . "\n" . ' - dq1.q3.s2 - dq2.q3.s2\\\\';
$article = $article . "\n" . ' 0\\\\';
$article = $article . "\n" . ' - dq1.s2 - dq2.s2 - dq4.s2 - dq5.(s2 + c2.s5)\\\\';
$article = $article . "\n" . ' c2.dq1 + c2.dq2 + c2.dq4 + dq5.(c2 - s2.s5)\\\\';
$article = $article . "\n" . ' c5.dq5';
$article = $article . "\n" . '\\end{pmatrix}';
$article = $article . "\n" . '\\end{align}';
$article = $article . "\n" . '$$';
$p1->setContent($article);
$p1->setAuthor($this->getReference('user-admin'));
$p1->setMathematics(true);
$manager->persist($p1);
$manager->flush();
}