Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <?xml version="1.0" encoding="UTF-8"?>\r |
2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r | |
3 | "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r | |
4 | <refentry id="sign">\r | |
5 | <refmeta>\r | |
6 | <refmetainfo>\r | |
7 | <copyright>\r | |
8 | <year>2011</year>\r | |
9 | <holder>Khronos Group</holder>\r | |
10 | </copyright>\r | |
11 | </refmetainfo>\r | |
12 | <refentrytitle>sign</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>sign</refname>\r | |
17 | <refpurpose>extract the sign of the parameter</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>Declaration</title>\r | |
20 | <funcsynopsis>\r | |
21 | <funcprototype>\r | |
22 | <funcdef>genType <function>sign</function></funcdef>\r | |
23 | <paramdef>genType <parameter>x</parameter></paramdef>\r | |
24 | </funcprototype>\r | |
25 | </funcsynopsis>\r | |
26 | <funcsynopsis>\r | |
27 | <funcprototype>\r | |
28 | <funcdef>genIType <function>sign</function></funcdef>\r | |
29 | <paramdef>genIType <parameter>x</parameter></paramdef>\r | |
30 | </funcprototype>\r | |
31 | </funcsynopsis>\r | |
32 | <funcsynopsis>\r | |
33 | <funcprototype>\r | |
34 | <funcdef>genDType <function>sign</function></funcdef>\r | |
35 | <paramdef>genDType <parameter>x</parameter></paramdef>\r | |
36 | </funcprototype>\r | |
37 | </funcsynopsis>\r | |
38 | </refsynopsisdiv>\r | |
39 | <refsect1 id="parameters"><title>Parameters</title>\r | |
40 | <variablelist>\r | |
41 | <varlistentry>\r | |
42 | <term><parameter>x</parameter></term>\r | |
43 | <listitem>\r | |
44 | <para>\r | |
45 | Specify the value from which to extract the sign.\r | |
46 | </para>\r | |
47 | </listitem>\r | |
48 | </varlistentry>\r | |
49 | </variablelist>\r | |
50 | </refsect1>\r | |
51 | <refsect1 id="description"><title>Description</title>\r | |
52 | <para>\r | |
53 | <function>abs</function> returns 1.0 if\r | |
54 | <inlineequation><mml:math><mml:apply><mml:lt /><mml:mi>x</mml:mi><mml:mn>0.0</mml:mn></mml:apply></mml:math></inlineequation>,\r | |
55 | 0.0 if\r | |
56 | <inlineequation><mml:math><mml:apply><mml:eq /><mml:mi>x</mml:mi><mml:mn>0.0</mml:mn></mml:apply></mml:math></inlineequation> and\r | |
57 | 1.0 if\r | |
58 | <inlineequation><mml:math><mml:apply><mml:gt /><mml:mi>x</mml:mi><mml:mn>0.0</mml:mn></mml:apply></mml:math></inlineequation>.\r | |
59 | </para>\r | |
60 | </refsect1>\r | |
61 | <refsect1 id="versions"><title>Version Support</title>\r | |
62 | <informaltable frame="topbot">\r | |
63 | #VARTABLECOLS#\r | |
64 | <thead>\r | |
65 | #FUNCTABLEHEADER#\r | |
66 | <row>\r | |
67 | <entry>sign (genType)</entry>#newin13#\r | |
68 | </row>\r | |
69 | <row>\r | |
70 | <entry>sign (genIType)</entry>#newin15#\r | |
71 | </row>\r | |
72 | <row>\r | |
73 | <entry>sign (genDType)</entry>#newin40#\r | |
74 | </row>\r | |
75 | </thead>\r | |
76 | </tgroup>\r | |
77 | </informaltable>\r | |
78 | </refsect1>\r | |
79 | <refsect1 id="seealso"><title>See Also</title>\r | |
80 | <para>\r | |
81 | <citerefentry><refentrytitle>sign</refentrytitle></citerefentry>\r | |
82 | </para>\r | |
83 | </refsect1>\r | |
84 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
85 | <para>\r | |
86 | Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r | |
87 | This material may be distributed subject to the terms and conditions set forth in \r | |
88 | the Open Publication License, v 1.0, 8 June 1999.\r | |
89 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
90 | </para>\r | |
91 | </refsect1>\r | |
92 | </refentry>\r |