Difference between revisions of "LlAcos/zh-Hant"

From Second Life Wiki
Jump to: navigation, search
(Created page with "{{LSL_Function/zh-Hant |func_id=172|func_sleep=0.0|func_energy=10.0 |func=llAcos|sort=Acos |return_type=float |p1_type=float|p1_name=val|p1_desc=must fall in the range {{Interval…")
 
 
Line 3: Line 3:
 
|func=llAcos|sort=Acos
 
|func=llAcos|sort=Acos
 
|return_type=float
 
|return_type=float
|p1_type=float|p1_name=val|p1_desc=must fall in the range {{Interval|gte=-1.0|center=val|lte=1.0}}{{Interval/Footnote}}
+
|p1_type=float|p1_name=val|p1_desc=範圍必須為{{Interval|gte=-1.0|center=val|lte=1.0}}{{Interval/Footnote}}
 
|p1_hover=範圍必須為{{Interval/Text2|gte=-1.0|center=val|lte=1.0}}
 
|p1_hover=範圍必須為{{Interval/Text2|gte=-1.0|center=val|lte=1.0}}
|return_text='''{{LSL Param|val}}'''的反餘弦值。
+
|return_text='''{{LSL Param|val}}'''的反餘弦值
 
|func_footnote=回傳值的範圍為{{Interval|gte=0.0|center=return|lte=[[PI]]|lteh=PI}}
 
|func_footnote=回傳值的範圍為{{Interval|gte=0.0|center=return|lte=[[PI]]|lteh=PI}}
 
|spec
 
|spec

Latest revision as of 20:03, 7 May 2011

概要

函式: float llAcos( float val );
172 函式ID
0.0 延遲
10.0 能量

回傳一個float為val的反餘弦值。

• float val 範圍必須為[-1.0, 1.0][1]

回傳值的範圍為[0.0, PI]

範例

<lsl>// Touch the object with this script in it to see the arccosine of random numbers! default {

   touch_start(integer num)
   {
       float r = llFrand(2) - 1.0;
       llOwnerSay("The arccosine of " + (string)r + " is " + (string)llAcos(r));
   }
}</lsl>

參照

函式

• llSin llAsin sine & inverse Sine
• llCos cosine
• llTan llAtan2 tangent & inverse tangent

文章

•  Wikipedia:Inverse_trigonometric_function

Deep Notes

Search JIRA for related Issues

Footnotes

  1. ^ The ranges in this article are written in Interval Notation.