Skip to main content
Question

Sine Inverse Calculation

  • February 7, 2014
  • 3 replies
  • 23 views

venu
Contributor
Forum|alt.badge.img+5
  • Contributor
Hi all,

 

 

Angle 37 Sine value is "0.60181502".

 

 

But I have "0.60181502" from this i need to find angle 37 in fme.

 

 

Please guide me

 

 

Thanks in advance

3 replies

takashi
Supporter
  • February 7, 2014
Hi,

 

 

The inverse function of sine is arcsine, and FME Math Functions include "@asin". You can use the function in some transformers. e.g. ExpressionEvaluator, AttributeCreator etc..

 

Just be aware the unit of returned angle from the function is radian. To convert radian to degree, multiply radian value by 180 / PI (PI: circular constant = 3.14159265...).

 

In addition, since PI is an infinite decimals, you cannot avoid a slight computational error. If necessary, consider using the AttributeRounder transformer to round the result value.

 

 

Takashi

venu
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 7, 2014
In Atrributecreator I have tried like below shown the result angle 37 is not coming.please correct me.

 

 

@asin(0.60181502)/(180/3.14159265)

takashi
Supporter
  • February 7, 2014
Multiply and evaluate.

 

@Evaluate(@asin(0.60181502)*(180/3.14159265))

 

 

If you type the expression using the Arithmetic Editor, no need to type @Evaluate. The AttributeCreator add it automatically after closing the editor.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings