Re: [Scilab-users] How to specify angle in degree and minutes

2021-03-22 Thread Stéphane Mottelet
Hello, The best way would be to use msscanf: --> [x]=msscanf("44d32m11s","%dd%dm%ds")  x  =    44.   32.   11. S. Le 16/03/2021 à 19:59, Dmitry Samersoff a écrit : Hello Everybody, I need to calculate cosine of bunch of angles that comes as Degree Minutes Seconds (e.g. 44d32m11s). What

Re: [Scilab-users] How to specify angle in degree and minutes

2021-03-22 Thread Dmitry Samersoff
Hello Christophe, Thank you for your support. tokens + arithmetic conversion did what I was needed. It would be nice to have the support for such notation in a future and avoid extra steps - this kind of data is rather common for many areas of knowledge. -Dmitry On 22/03/2021 11:16, Dang

Re: [Scilab-users] How to specify angle in degree and minutes

2021-03-22 Thread Dang Ngoc Chan, Christophe
Hello, > De : Dmitry Samersoff > Envoyé : mardi 16 mars 2021 19:59 > > I need to calculate cosine of bunch of angles > that comes as Degree Minutes Seconds (e.g. 44d32m11s). > > What is the best way to do it in scilab? If you have a vector of numbers angle = [dd, mm, ss], it is rather easy to

[Scilab-users] How to specify angle in degree and minutes

2021-03-16 Thread Dmitry Samersoff
Hello Everybody, I need to calculate cosine of bunch of angles that comes as Degree Minutes Seconds (e.g. 44d32m11s). What is the best way to do it in scilab? Does cosd() accept some notation that is similar to one above? Thank you! -Dmitry ___