convert last formula to markdown. Make them translatable.

This commit is contained in:
jean-pierre charras 2019-09-29 18:54:14 +02:00
parent ef66704e58
commit 1cbe1171ef
6 changed files with 31 additions and 99 deletions

View File

@ -188,8 +188,8 @@ endfunction()
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/bridget_tee_formula ) md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/bridget_tee_formula )
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/splitter_formula ) md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/splitter_formula )
html_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/pi_formula ) md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/pi_formula )
html_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/tee_formula ) md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/tee_formula )
set( DOCS_LIST set( DOCS_LIST
${CMAKE_CURRENT_SOURCE_DIR}/attenuators/pi_formula.h ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/pi_formula.h

View File

@ -1,8 +1,9 @@
__Zin__ desired input impedance in &#8486<br>
__Zout__ desired output impedance __Zin = Zout__
### Bridged tee attenuator: ### Bridged tee attenuator:
__Zin__ desired input impedance in &#8486;<br>
__Zout__ desired output impedance<br>
__Z<sub>0</sub> = Zin = Zout__<br><br>
* __a__ attenuation in dB * __a__ attenuation in dB
* __L = 10<sup>a/20</sup>__ (the loss) * __L = 10<sup>a/20</sup>__ (the loss)<br><br>
* ___R1 = Zin * (L - 1)___ * ___R1 = Z<sub>0</sub> * (L - 1)___
* ___R2 = Zin / (L - 1)___ * ___R2 = Z<sub>0</sub> / (L - 1)___

View File

@ -1,44 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252"/>
<title></title>
<meta name="generator" content="LibreOffice 5.0.3.2 (Windows)"/>
<meta name="created" content="00:00:00"/>
<meta name="changed" content="2016-01-16T13:32:32.474000000"/>
<style type="text/css">
@page { margin: 2cm }
p { margin-bottom: 0.25cm; line-height: 120% }
a:link { so-language: zxx }
</style>
</head>
<body lang="fr-FR" dir="ltr">
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt"><b>Z</b><sub><b>in</b></sub>
desired input impedance in &#8486;</font></font></p>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt"><b>Z</b><sub><b>out</b></sub><sub>
</sub> desired output impedance in &#8486;</font></font></p>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt">a
attenuation in dB</font></font></p>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt">L
= 10<sup>a/10</sup> (the loss)</font></font></p>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt">A
= (L + 1)/(L &minus; 1)</font></font></p>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal; line-height: 100%">
<br/>
</p>
<p style="margin-bottom: 0cm; font-style: normal; line-height: 100%"><font face="Times New Roman, serif"><font size="6" style="font-size: 28pt"><b>Pi
attenuator</b></font></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><font face="Times New Roman, serif"><font size="6" style="font-size: 28pt"><i><b>R2
= (L &minus; 1)/2 * &radic; ((Z<sub>in</sub> * Z<sub>out</sub>)/L)</b></i></font></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><font face="Times New Roman, serif"><font size="6" style="font-size: 28pt"><i><b>R1
= 1/( A/Z<sub>in</sub> &minus; 1/R2)</b></i></font></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><font face="Times New Roman, serif"><font size="6" style="font-size: 28pt"><i><b>R3
= 1/ (A/Z<sub>out</sub> &minus; 1/R2)</b></i></font></font></p>
</body>
</html>

View File

@ -0,0 +1,11 @@
## Pi attenuator
__Zin__ desired input impedance in &#8486;<br>
__Zout__ desired output impedance<br>
__Zin = Zout__<br><br>
* __a__ attenuation in dB
* __L = 10<sup>a/20</sup>__ (the loss)
* __A = (L + 1)/(L - 1)__<br><br>
* ___R2 = (L- 1)/2 . &radic; ( (Zin . Zout) / L)___
* ___R1 = 1/( A/Zin - 1/R2 )___
* ___R3 = 1/ (A/Zout - 1/R2 )___

View File

@ -1,47 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252"/>
<title></title>
<meta name="generator" content="LibreOffice 5.0.3.2 (Windows)"/>
<meta name="created" content="00:00:00"/>
<meta name="changed" content="2016-01-16T13:25:20.291000000"/>
<style type="text/css">
@page { margin: 2cm }
p { margin-bottom: 0.25cm; line-height: 120% }
a:link { so-language: zxx }
</style>
</head>
<body lang="fr-FR" dir="ltr">
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt">Z<sub>in</sub>
desired input impedance in &#8486;</font></font></p>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt">Z<sub>out</sub>
desired output impedance in &#8486;</font></font></p>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt">a
attenuation in dB</font></font></p>
<p style="margin-bottom: 0cm; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt"><i>L
= 10 <sup>a/10</sup> (the loss)</i></font></font></p>
<p style="margin-bottom: 0cm; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 22pt"><i>A
= (L + 1)/(L &minus; 1)</i></font></font></p>
<p style="margin-bottom: 0cm; font-weight: normal; line-height: 100%">
<br/>
</p>
<p style="margin-bottom: 0cm; font-style: normal; line-height: 100%"><font face="Times New Roman, serif"><font size="6" style="font-size: 28pt"><b>Tee
attenuator</b></font></font></p>
<p style="margin-left: 2cm; margin-bottom: 0cm; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 28pt"><i>R2
= 2*&radic; (L * Z<sub>in</sub> * Z<sub>out</sub> )/(L &minus; 1)</i></font></font></p>
<p style="margin-left: 2cm; margin-bottom: 0cm; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 28pt"><i>R1
= Z<sub>in</sub> * A &minus; R2</i></font></font></p>
<p style="margin-left: 2cm; margin-bottom: 0cm; font-weight: normal; line-height: 100%">
<font face="Times New Roman, serif"><font size="6" style="font-size: 28pt"><i>R3
= Z<sub>out</sub> * A &minus; R2</i></font></font></p>
</body>
</html>

View File

@ -0,0 +1,11 @@
## Tee attenuator
__Zin__ desired input impedance in &#8486;<br>
__Zout__ desired output impedance<br>
__Zin = Zout__<br><br>
* __a__ attenuation in dB
* __L = 10<sup>a/20</sup>__ (the loss)
* ___A = (L + 1)/(L - 1)___<br><br>
* ___R2 = 2&radic; (L . Z<sub>in</sub> . Z<sub>out</sub> )/(L - 1)___
* ___R1 = Z<sub>in</sub> * A - R2___
* ___R3 = Z<sub>out</sub> * A - R2___