Hvad er Tau?
Konstanten er numerisk lig med 2*pi (2 gange pi) , og med værdi ca 6,28 . Forholdet svarer til 2*C/D. Hvor C er omkreds og D er cirkeldiameter.
Anvendelser af Tau
- Der er mange udtryk der faktisk kræver 2*pi beregning , at have tau lig med det forenkler dem i høj grad, for f.eks Cirkels omkreds = 2*pi*r = tau*r .
- Begrebet tau kan være nyttigt i vinkelmålinger ligesom vinkler i radianer, der repræsenterer som en komplet én-drejning og cos, har sinusfunktioner i trigonometri periode med tau.
- Disse begreber kan være nyttige til undervisning i geometri som ville reducere forvirringen ved at bruge pi og 2*pi ved mange applikationer og ville hjælpe med at slippe af med faktor 2.
- Ja forenkler Eulers identitet ved at udrydde faktoren 2.
- det er nyttig mange steder, hvor 2*pi bruges såsom fourier-transformationer, cauchy integralformler osv.
Kritik mod Tau
- Siden den er i modstrid med symbolerne for drejningsmoment, forskydningsspænding og tid , dette symbol har været meget kritik.
- Vi havde allerede et forhold mellem C/D lig med pi, at have et andet cirkelforhold med faktor to vil skabe forvirring i valget.
- Der findes formler, der ser mere elegante ud som udtryk for pi i stedet for tau, for eksempel, cirkelareal = pi*r*r = (tau*r*r)/2, hvilket indfører en ekstra faktor på 1/2.
Kodning udsigter
Da programmering altid har forsøgt at matche matematiske fremskridt, er symbolet for tau blevet introduceret som en konstant i nyere python 3.6 under matematikmodulet. Nedenfor er illustrationen af det.
C++
#include> #include> int> main()> {> >// C++ has no inbuilt tau but has inbuilt pi in cmath library> >// std::cout << M_PI; // this prints the value of pi> >// but no tau, so we can use the formula 2*pi to calculate it> >std::cout <<>'The value of tau (using 2*pi) is: '> << M_PI * 2 << std::endl;> >return> 0;> }> // This code contributed by Ajax> |
>
>
Java
/*package whatever //do not write package name here */> import> java.io.*;> import> java.util.*;> class> GFG {> >public> static> void> main(String[] args)> >{> >// java has no inbuilt tau but has inbuilt pi in math library> >// System.out.println(''+Math.PI); this print value> >// of pi> >// but no tau thus for using it we can use formula> >// for that> >System.out.println(> >'The value of tau (using 2*pi) is : '> >+ Math.PI *>2>);> >}> }> |
>
>
Python3
python sortering tuples
# Python code to demonstrate the working> # of tau> import> math> # Printing the value of tau using 2*pi> print> (>'The value of tau (using 2*pi) is : '>,end>=>'')> print> (math.pi>*>2>)> # Printing the value of tau using in-built tau function> print> (>'The value of tau (using in-built tau) is : '>,end>=>'')> print> (math.tau);> |
>
>
C#
using> System;> class> GFG {> >public> static> void> Main()> >{> >// C# has no inbuilt tau but has inbuilt pi> >// in Math library> >// Console.WriteLine(Math.PI); this print> >// value of pi> >// but no tau thus for using it we can use> >// formula for that> >Console.WriteLine(>'The value of tau '> +> >'(using 2*pi) is : {0}'>,> >Math.PI * 2);> >}> }> // This code is contributed by surajrasr7277> |
>
>
Javascript
// JavaScript has no inbuilt tau but has inbuilt pi in Math library> // console.log(Math.PI); // this prints the value of pi> // but no tau, so we can use the formula 2*pi to calculate it> console.log(>'The value of tau (using 2*pi) is: '> + (Math.PI * 2));> |
>
>
10 ml er hvor megetProduktion
The value of tau (using 2*pi) is: 6.28319>
Tidskompleksitet: O(1)
Hjælpeplads: O(1)
Bemærk: Denne kode fungerer ikke på Geeksforgeeks IDE, da Python 3.6 ikke understøttes.
Reference: http://math.wikia.com/wiki/Tau_(konstant)