annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

question about Arcsin function

Hi, I have a little problem with a program, I'm calculating an angle in a triangle using sine and cosine laws. Given the values of a, c and B (beta) I want to get alpha (see the image of the triangle at the .VI), the first formula is to get "b" [b=b=sqrt((c*c)+(a*a)-(2*a*c*cos(B)));], it is proved at the calculator and it's well... the second formula is to get the desired alpha value [A=arcsin((a*sin(B))/b)]. THE PROBLEM APPEARS at the time when I want to get the arcsin of the the argument: (a*sin(B))/b).

 

For example given a=18, c=16.135 and B=35°, b segment is equal to 23.75154 (the calculator confirms it) and the value of alpha in my VI is 0.44968 (the same result if I use formula node or the asin function), that is obviously wrong!! my calculator says that alpha=25.76507.... what is wrong in my VI?? 

 

Thank you


Carlos Ignacio Sarmiento
Electronic Engineer
(Ciudad Madero Technological Institute)
Laboratory of Bioelectronics, Biohospital Engineering Departament
National Institute of Neurology and Neurosurgery "Manuel Velasco Suárez" (Mexico City)
Scarica tutti
0 Kudos
Messaggio 1 di 7
6.358Visualizzazioni

I wonder (I don't really) what 0.44968 radians is in degrees?

0 Kudos
Messaggio 2 di 7
6.352Visualizzazioni

LabVIEW uses radians as base unit for angles!

 

So you need to provide your input angles in radians and get the results in radians too.

 

Radians is the only mathematically correct unit for angles. Degree is ambigious since you have systems with 360 as well as 400 degree for a full circle.

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Messaggio 3 di 7
6.350Visualizzazioni

thank you to all, I checked it again, exatly, LabVIEW's arcsin function gets a value in radians, so to have the degree value wee need to convert it again, no matter if we did it at first. Here is the correct VI. Thank you to all guys!!!


Carlos Ignacio Sarmiento
Electronic Engineer
(Ciudad Madero Technological Institute)
Laboratory of Bioelectronics, Biohospital Engineering Departament
National Institute of Neurology and Neurosurgery "Manuel Velasco Suárez" (Mexico City)
0 Kudos
Messaggio 4 di 7
6.328Visualizzazioni

@rolfk wrote:

LabVIEW uses radians as base unit for angles!

 

So you need to provide your input angles in radians and get the results in radians too.

 

Radians is the only mathematically correct unit for angles. Degree is ambigious since you have systems with 360 as well as 400 degree for a full circle.

 


This is not true. There are many ways to measure angles (see http://en.wikipedia.org/wiki/Angle#Units), but the most mathematically "pure" unit is the radian, with a full circle measuring 2*Pi radians.

 

There are always 360 degrees in a full circle. Dividing a circle into 400 parts gives 400 grads. That is a different unit altogether.

 

The only exposure I have ever had to grads is the "DRG" setting on every scientific calculator that establishes the input/output unit for the trigonometric functions. Wikipedia (which is never, ever wrong) identifies that the grad is primarily used in triangulation and was originally used to define a kilometer. Interesting factoid there!

 

Jeff

Jeffrey Zola
0 Kudos
Messaggio 5 di 7
6.291Visualizzazioni

@Jeffrey_Zola wrote:

There are always 360 degrees in a full circle. Dividing a circle into 400 parts gives 400 grads. That is a different unit altogether.

 


Didn't know English uses different words for these units. In German, which is my native language, for both "Grad" is normally used. However the 400 parts unit is fully correct called "Neugrad" but few know this unit at all and even fewer that it really should be called Neugrad.

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Messaggio 6 di 7
6.276Visualizzazioni

Well I don't consider neccesary to use a 400 degree scale, yeah, it is right that the 360 convention is ambiguous, but is is the most accepted and as I don't need exatly as much accuracy, it is not neccesary to use. It is enough to convert radians to "normal degrees", I didn't know that labview works in radians, that was the problem here 😞 

 

Carlos Ignacio Sarmiento

Electronic Engineer

National Institute of Neurology and Neurosurgery

Mexico City


Carlos Ignacio Sarmiento
Electronic Engineer
(Ciudad Madero Technological Institute)
Laboratory of Bioelectronics, Biohospital Engineering Departament
National Institute of Neurology and Neurosurgery "Manuel Velasco Suárez" (Mexico City)
0 Kudos
Messaggio 7 di 7
6.240Visualizzazioni