12th root of x

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

12th root of x

harish3679
Hi guys,

How do i calculate this in octave, I tried using this function "sqrt" but
not with this problem

12√(531441/524288)

Regards,
kev



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: 12th root of x

Montgomery-Smith, Stephen
(531441/524288)^(1/12)
From: Help-octave <help-octave-bounces+stephen=[hidden email]> on behalf of harish3679 <[hidden email]>
Sent: Sunday, October 6, 2019 12:45:24 PM
To: [hidden email]
Subject: 12th root of x
 
Hi guys,

How do i calculate this in octave, I tried using this function "sqrt" but
not with this problem

12√(531441/524288)

Regards,
kev



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html




Reply | Threaded
Open this post in threaded view
|

Re: 12th root of x

harish3679
I am getting 1.0011 but the answer is 1.96 in cents to calculate pythagorean
comma



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: 12th root of x

Montgomery-Smith, Stephen
What does "in cents" mean?  1.96 is wrong.  Try asking google, and you will see that the other answer is correct.

From: Help-octave <help-octave-bounces+stephen=[hidden email]> on behalf of harish3679 <[hidden email]>
Sent: Sunday, October 6, 2019 1:18:33 PM
To: [hidden email]
Subject: Re: 12th root of x
 
I am getting 1.0011 but the answer is 1.96 in cents to calculate pythagorean
comma



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html




Reply | Threaded
Open this post in threaded view
|

Re: 12th root of x

Doug Stewart-4
In reply to this post by harish3679


On Sun, Oct 6, 2019 at 1:45 PM harish3679 <[hidden email]> wrote:
Hi guys,

How do i calculate this in octave, I tried using this function "sqrt" but
not with this problem

12√(531441/524288)

Regards,
kev



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


>> format long
>> 2^(1/12)
ans =  1.059463094359295
or x^(1/12)



--
DASCertificate for 206392



Reply | Threaded
Open this post in threaded view
|

Re: 12th root of x

Francesco Potortì
In reply to this post by harish3679
This is the Pythagorean comma:
octave> 1.5^12/2^7
ans =  1.0136

This is a cent:
octave> 2^(1/1200)
ans =  1.0006

This is the Pythagorean comma in cents:
octave> log(1.5^12/2^7) / log(2^(1/1200))
ans =  23.460

--
IPIN'19 http://ipin2019.isti.cnr.it    Voice:  +39.050.621.3058
Francesco Potortì (ricercatore)        Mobile: +39.348.8283.107
ISTI - Area della ricerca CNR          Skype:  wnlabisti
via G. Moruzzi 1, I-56124 Pisa         Web:    http://fly.isti.cnr.it



Reply | Threaded
Open this post in threaded view
|

Re: 12th root of x

harish3679
Hi Guys,

Thanks for all your inputs. Here is what I got:

Octave:
>> x = (531441/524288)^(1/12)
x =  1.0011
>> rats(x)
ans =   886/885

Scala:
>>insert
_Position:2
_Pitch:886/885
>>show
 0:          1/1               0.000000 unison, perfect prime
 1:       1024/729         588.269995 Pythagorean diminished fifth
 2:        886/885          1.955092

Finally got my answer 1.96 when rounded in cents for 12th of pythagorean
comma for fifths







--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: 12th root of x

Montgomery-Smith, Stephen
You can also get it in cents using the formula:

1200 * log(x) / log(2)
From: Help-octave <help-octave-bounces+stephen=[hidden email]> on behalf of harish3679 <[hidden email]>
Sent: Monday, October 7, 2019 12:26:20 AM
To: [hidden email]
Subject: Re: 12th root of x
 
Hi Guys,

Thanks for all your inputs. Here is what I got:

Octave:
>> x = (531441/524288)^(1/12)
x =  1.0011
>> rats(x)
ans =   886/885

Scala:
>>insert
_Position:2
_Pitch:886/885
>>show
 0:          1/1               0.000000 unison, perfect prime
 1:       1024/729         588.269995 Pythagorean diminished fifth
 2:        886/885          1.955092

Finally got my answer 1.96 when rounded in cents for 12th of pythagorean
comma for fifths







--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html