Difference between revisions of "User:Jholsenback"

From POV-Wiki
Jump to navigation Jump to search
(New page: Stay tuned .... film at 11:00PM)
 
Line 1: Line 1:
Stay tuned .... film at 11:00PM
+
==Intro==
 +
I'm playing around with these LaTex markup files that are used in the POV-Ray documentation.
 +
==Reference==
 +
These are in the reference section.
 +
===blobdens===
 +
<pre>
 +
% FILE: blobdens
 +
% --------
 +
\begin{displaymath}
 +
  \mathit{density} =
 +
  \mathit{strength}\cdot
 +
  \left(1-\left(\frac{\mathit{distance}}{\mathit{radius}}\right)^2\right)^2
 +
\end{displaymath}
 +
</pre>
 +
===curvmath===
 +
<pre>
 +
  % FILE: curvmath
 +
% --------
 +
\begin{displaymath}
 +
  \begin{array}{l}
 +
    b = M \cdot x, \mathrm{with:}
 +
    \\ \\
 +
    b = \left[
 +
      \begin{array}{c}
 +
        r(j)^2 \\
 +
        r(j+1)^2 \\
 +
        2 \cdot r(j) \cdot (r(j+1)-r(j-1)) \\
 +
        \hline
 +
        h(j+1)-h(j-1) \\
 +
        2 \cdot r(j+1) \cdot (r(j+2)-r(j)) \\
 +
        \hline
 +
        h(j+2)-h(j)
 +
      \end{array}
 +
    \right]
 +
    \\ \\
 +
    M = \left[
 +
      \begin{array}{c c c c}
 +
        h(j)^3 & h(j)^2 & h(j) & 1 \\
 +
        h(j+1)^3 & h(j+1)^2 & h(j+1) & 1 \\
 +
        3\cdot h(j)^2 & 2\cdot h(j) & 1 & 0 \\
 +
        3\cdot h(j+1)^2 & 2\cdot h(j+1) & 1 & 0
 +
      \end{array}
 +
    \right]
 +
    \\ \\
 +
    x = \left[
 +
      \begin{array}{c}
 +
        A(j)\\ B(j)\\ C(j)\\ D(j)
 +
      \end{array}
 +
    \right]
 +
  \end{array}
 +
\end{displaymath}
 +
</pre>
 +
===lattenua===
 +
<pre>
 +
% FILE: lattenua
 +
% --------
 +
\begin{displaymath}
 +
  \mathit{attenuation} =
 +
  \frac{2}
 +
  {1+\left(\frac{d}{\mathit{fade\_distance}}\right)^\mathit{fade\_power}}
 +
\end{displaymath}
 +
</pre>
 +
===medatten===
 +
<pre>
 +
% FILE: medatten
 +
% --------
 +
\begin{displaymath}
 +
  \mathit{attenuation} =
 +
  \frac{1}
 +
  {1+\left(\frac{d}{\mathit{fade\_distance}}\right)^\mathit{fade\_power}}
 +
\end{displaymath}
 +
</pre>
 +
===prod===
 +
<pre>
 +
% FILE: prod
 +
% ----
 +
\begin{displaymath}
 +
  \prod_{i=b}^n a
 +
\end{displaymath}
 +
</pre>
 +
Produces: <math>prod_{i=b}^n a</math>
 +
===sormath===
 +
<pre>
 +
% sormath
 +
% -------
 +
\begin{displaymath}
 +
  r^2 = f(h) = A\cdot h^3 + B\cdot h^2 + C\cdot h + D
 +
\end{displaymath}
 +
</pre>
 +
Produces: <math>r^2 = f(h) = A\cdot h^3 + B\cdot h^2 + C\cdot h + D</math>
 +
===sqemath===
 +
<pre>
 +
% FILE: sqemath
 +
% -------
 +
\begin{displaymath}
 +
  f(x,y,z) =
 +
  \left(|x|^{\left(\frac{2}{e}\right)} + |y|^{\left(\frac{2}{e}\right)}
 +
  \right)^{\left(\frac{e}{n}\right)} + |z|^{\left(\frac{2}{n}\right)} - 1 = 0
 +
\end{displaymath}
 +
</pre>
 +
Produces: <math>f(x,y,z) = left(|x|^{\left(\frac{2}{e}\right)} + |y|^{\left(\frac{2}{e}\right)}right)^{\left(\frac{e}{n}\right)} + |z|^{\left(\frac{2}{n}\right)} - 1 = 0</math>
 +
===sum===
 +
<pre>
 +
% FILE: sum
 +
% ---
 +
\begin{displaymath}
 +
  \sum_{i=b}^n a
 +
\end{displaymath}
 +
</pre>
 +
Produces: <math>sum_{i=b}^n a</math>

Revision as of 11:50, 20 January 2009

Intro

I'm playing around with these LaTex markup files that are used in the POV-Ray documentation.

Reference

These are in the reference section.

blobdens

% FILE: blobdens
% --------
\begin{displaymath}
  \mathit{density} =
  \mathit{strength}\cdot
  \left(1-\left(\frac{\mathit{distance}}{\mathit{radius}}\right)^2\right)^2
\end{displaymath}

curvmath

  % FILE: curvmath
% --------
\begin{displaymath}
  \begin{array}{l}
    b = M \cdot x, \mathrm{with:}
    \\ \\
    b = \left[
      \begin{array}{c}
        r(j)^2 \\
        r(j+1)^2 \\
        2 \cdot r(j) \cdot (r(j+1)-r(j-1)) \\
        \hline
        h(j+1)-h(j-1) \\
        2 \cdot r(j+1) \cdot (r(j+2)-r(j)) \\
        \hline
        h(j+2)-h(j)
      \end{array}
    \right]
    \\ \\
    M = \left[
      \begin{array}{c c c c}
        h(j)^3 & h(j)^2 & h(j) & 1 \\
        h(j+1)^3 & h(j+1)^2 & h(j+1) & 1 \\
        3\cdot h(j)^2 & 2\cdot h(j) & 1 & 0 \\
        3\cdot h(j+1)^2 & 2\cdot h(j+1) & 1 & 0
      \end{array}
    \right]
    \\ \\
    x = \left[
      \begin{array}{c}
        A(j)\\ B(j)\\ C(j)\\ D(j)
      \end{array}
    \right]
  \end{array}
\end{displaymath}

lattenua

% FILE: lattenua
% --------
\begin{displaymath}
  \mathit{attenuation} =
  \frac{2}
  {1+\left(\frac{d}{\mathit{fade\_distance}}\right)^\mathit{fade\_power}}
\end{displaymath}

medatten

% FILE: medatten
% --------
\begin{displaymath}
  \mathit{attenuation} =
  \frac{1}
  {1+\left(\frac{d}{\mathit{fade\_distance}}\right)^\mathit{fade\_power}}
\end{displaymath}

prod

% FILE: prod
% ----
\begin{displaymath}
  \prod_{i=b}^n a
\end{displaymath}

Produces:

sormath

% sormath
% -------
\begin{displaymath}
  r^2 = f(h) = A\cdot h^3 + B\cdot h^2 + C\cdot h + D
\end{displaymath}

Produces:

sqemath

% FILE: sqemath
% -------
\begin{displaymath}
  f(x,y,z) =
  \left(|x|^{\left(\frac{2}{e}\right)} + |y|^{\left(\frac{2}{e}\right)}
  \right)^{\left(\frac{e}{n}\right)} + |z|^{\left(\frac{2}{n}\right)} - 1 = 0
\end{displaymath}

Produces:

sum

% FILE: sum
% ---
\begin{displaymath}
  \sum_{i=b}^n a
\end{displaymath}

Produces: