summaryrefslogtreecommitdiffstats
path: root/source/text/sbasic/shared/03080101.xhp
diff options
context:
space:
mode:
Diffstat (limited to 'source/text/sbasic/shared/03080101.xhp')
-rw-r--r--source/text/sbasic/shared/03080101.xhp26
1 files changed, 15 insertions, 11 deletions
diff --git a/source/text/sbasic/shared/03080101.xhp b/source/text/sbasic/shared/03080101.xhp
index 3961f03df0..06fe67d5d5 100644
--- a/source/text/sbasic/shared/03080101.xhp
+++ b/source/text/sbasic/shared/03080101.xhp
@@ -49,7 +49,9 @@
<paragraph role="paragraph" id="par_id3143271" xml-lang="en-US" l10n="U" oldref="3">The arctangent is the inverse of the tangent function. The Atn Function returns the angle "Alpha", expressed in radians, using the tangent of this angle. The function can also return the angle "Alpha" by comparing the ratio of the length of the side that is opposite of the angle to the length of the side that is adjacent to the angle in a right-angled triangle.</paragraph>
<paragraph role="paragraph" id="par_id3145315" xml-lang="en-US" l10n="U" oldref="4">Atn(side opposite the angle/side adjacent to angle)= Alpha</paragraph>
<paragraph role="heading" id="hd_id3149669" xml-lang="en-US" level="2" l10n="U" oldref="5">Syntax:</paragraph>
-<paragraph role="paragraph" id="par_id3148947" xml-lang="en-US" l10n="U" oldref="6">Atn (Number)</paragraph>
+<bascode>
+<paragraph role="bascode" id="par_id3148947" xml-lang="en-US" oldref="6">Atn (Number)</paragraph>
+</bascode>
<paragraph role="heading" id="hd_id3148664" xml-lang="en-US" level="2" l10n="U" oldref="7">Return value:</paragraph>
<paragraph role="paragraph" id="par_id3150359" xml-lang="en-US" l10n="U" oldref="8">Double</paragraph>
<paragraph role="heading" id="hd_id3148798" xml-lang="en-US" level="2" l10n="U" oldref="9">Parameters:</paragraph>
@@ -62,15 +64,17 @@
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
<paragraph role="heading" id="hd_id3153142" xml-lang="en-US" level="2" l10n="U" oldref="15">Example:</paragraph>
-<paragraph role="paragraph" id="par_id3146985" xml-lang="en-US" l10n="U" oldref="16">REM The following example calculates for a right-angled triangle</paragraph>
-<paragraph role="paragraph" id="par_id3145750" xml-lang="en-US" l10n="U" oldref="17">REM the angle Alpha from the tangent of the angle Alpha:</paragraph>
-<paragraph role="paragraph" id="par_id3146975" xml-lang="en-US" l10n="U" oldref="18">Sub ExampleATN</paragraph>
-<paragraph role="paragraph" id="par_id3151112" xml-lang="en-US" l10n="U" oldref="19">REM rounded Pi = 3.14159 is a predefined constant</paragraph>
-<paragraph role="paragraph" id="par_id3159156" xml-lang="en-US" l10n="U" oldref="20">Dim d1 As Double</paragraph>
-<paragraph role="paragraph" id="par_id3147435" xml-lang="en-US" l10n="U" oldref="21">Dim d2 As Double</paragraph>
-<paragraph role="paragraph" id="par_id3149262" xml-lang="en-US" l10n="U" oldref="22">d1 = InputBox$ ("Enter the length of the side adjacent to the angle: ","Adjacent")</paragraph>
-<paragraph role="paragraph" id="par_id3149482" xml-lang="en-US" l10n="U" oldref="23">d2 = InputBox$ ("Enter the length of the side opposite the angle: ","Opposite")</paragraph>
-<paragraph role="paragraph" id="par_id3155415" xml-lang="en-US" l10n="U" oldref="24">Print "The Alpha angle is"; (atn (d2/d1) * 180 / Pi); " degrees"</paragraph>
-<paragraph role="paragraph" id="par_id3149959" xml-lang="en-US" l10n="U" oldref="25">End Sub</paragraph>
+<bascode>
+<paragraph role="bascode" id="par_id3146985" xml-lang="en-US" l10n="U" oldref="16">' The following example calculates for a right-angled triangle</paragraph>
+<paragraph role="bascode" id="par_id3145750" xml-lang="en-US" l10n="U" oldref="17">' the angle Alpha from the tangent of the angle Alpha:</paragraph>
+<paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExampleAtn</paragraph>
+<paragraph role="bascode" id="par_id3151112" xml-lang="en-US" l10n="U" oldref="19">' rounded Pi = 3.14159 Is a predefined constant</paragraph>
+<paragraph role="bascode" localize="false" xml-lang="en-US">Dim d1 As Double</paragraph>
+<paragraph role="bascode" localize="false" xml-lang="en-US">Dim d2 As Double</paragraph>
+<paragraph role="bascode" id="par_id3149262" xml-lang="en-US" l10n="U" oldref="22"> d1 = InputBox$ ("Enter the length of the side adjacent to the angle: ","Adjacent")</paragraph>
+<paragraph role="bascode" id="par_id3149482" xml-lang="en-US" l10n="U" oldref="23"> d2 = InputBox$ ("Enter the length of the side opposite the angle: ","Opposite")</paragraph>
+<paragraph role="bascode" id="par_id3155415" xml-lang="en-US" l10n="U" oldref="24"> Print "The Alpha angle is"; (atn (d2/d1) * 180 / Pi); " degrees"</paragraph>
+<paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+</bascode>
</body>
</helpdocument>