📄 mainwz1dmapstest.html
字号:
<TITLE>WZ 1.1: 1D coordinates</TITLE><H1>1D Coordinates</H1> <P>There are a lot of predefined standard systems of 1D coordinates.We have a single general proxy <B>wz1dmap</B> for them:<PRE>#include "coglib.hxx"int main(){ wz1dmap c,c1,c2;</PRE> <P>There are various 1D coordinates:<PRE> c = new wz1Dcoordinates(); c = new wz1Dexp(); c = new wz1Dlog(); c = new wz1Datan(); c = new wz1Dsinh();</PRE><H2>Composition</H2> <P>They may be composed with each other at instantiation time andlater:<PRE> c2 = new wz1Dexp(c1 = new wz1Dlog); c2->compose(c1);</PRE> <P>Composition in above cases means the following order: <I>x = c2(c1(u))</I><H2>Computation of values</H2> <P>The transformation may be applied in the following way:<PRE> wzFloat u[1] = {1.0}; wzFloat x[1],v[1]; (*c)(x,u); // means x = c(u); c->call(x,u); // a synonym; c->inverse(v,x); // the inverse transformation;</PRE><H2>Affine transformations</H2> <P>Affine transformations may be added with the following operations:<PRE> c->stretch(2.0); c->shift(0.5);</PRE> <P>That means that now <PRE> (*c)(x,u); // means now x = ((2.0*c(u)) + 0.5);</PRE> <P>Affine transformations may be called multiple times, in this casethey will be composed in the order of the calls. Order matters, withthe reverse order of the calls before we would have obtained <I>x = 2.0*(c(u) + 0.5)</I> instead.<H2>Misc</H2> <P>Some information about given coordinates may be obtained by<PRE> c->print(); fine();}</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -