File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
blueprints/codes/eurocode
nen_en_1992_1_1_c2_2011/chapter_9_detailling_and_specific_rules
nen_en_1993_5_2008/chapter_5_ultimate_limit_states Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,16 @@ def _evaluate(
60
60
61
61
def latex (self ) -> LatexFormula :
62
62
"""Returns LatexFormula object for formula 9.1N."""
63
+ fraction = latex_fraction (numerator = f"{ self .f_ctm :.2f} " , denominator = f"{ self .f_yk :.2f} " )
63
64
return LatexFormula (
64
65
return_symbol = r"A_{s,min}" ,
65
66
result = f"{ self :.2f} " ,
66
67
equation = latex_max_curly_brackets (
67
- rf"0.26 \cdot { latex_fraction (r'f_{ctm}' , r'f_{yk}' )} \cdot b_t \cdot d" ,
68
+ rf"0.26 \cdot { latex_fraction (numerator = r'f_{ctm}' , denominator = r'f_{yk}' )} \cdot b_t \cdot d" ,
68
69
r"0.0013 \cdot b_t \cdot d" ,
69
70
),
70
71
numeric_equation = latex_max_curly_brackets (
71
- rf"0.26 \cdot { latex_fraction ( f' { self . f_ctm :.2f } ' , f' { self . f_yk :.2f } ' ) } \cdot { self .b_t :.2f} \cdot { self .d :.2f} " ,
72
+ rf"0.26 \cdot { fraction } \cdot { self .b_t :.2f} \cdot { self .d :.2f} " ,
72
73
rf"0.0013 \cdot { self .b_t :.2f} \cdot { self .d :.2f} " ,
73
74
),
74
75
comparison_operator_label = "=" ,
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ def latex(self) -> LatexFormula:
97
97
latex_equation = latex_min_curly_brackets (
98
98
r"\left(\beta_b \cdot W_{pl} - \frac{\rho \cdot A_v^2}{4 \cdot t_w \cdot \sin(\alpha)}\right) \cdot \frac{f_y}{\gamma_{M0}}, M_{c,Rd}"
99
99
)
100
+ fraction = latex_fraction (numerator = f"{ self .f_y :.2f} " , denominator = f"{ self .gamma_m_0 :.2f} " )
100
101
return LatexFormula (
101
102
return_symbol = r"M_{V,Rd}" ,
102
103
result = f"{ self :.3f} " ,
@@ -105,7 +106,7 @@ def latex(self) -> LatexFormula:
105
106
latex_min_curly_brackets (
106
107
rf"\left({ self .beta_b :.2f} \cdot { self .w_pl :.2f} - \frac{{{ self .rho :.2f} \cdot { self .a_v :.2f} ^2}}{{4 \cdot { self .t_w :.2f} \cdot "
107
108
rf"\sin({ self .alpha :.2f} )}}\right) \cdot "
108
- rf"{ latex_fraction ( f' { self . f_y :.2f } ' , f' { self . gamma_m_0 :.2f } ' ) } \cdot 10^{{-6}}, { self .mc_rd :.2f} "
109
+ rf"{ fraction } \cdot 10^{{-6}}, { self .mc_rd :.2f} "
109
110
)
110
111
),
111
112
comparison_operator_label = "=" ,
You can’t perform that action at this time.
0 commit comments