|
17 | 17 | }, |
18 | 18 | { |
19 | 19 | "cell_type": "code", |
20 | | - "execution_count": 22, |
| 20 | + "execution_count": 1, |
21 | 21 | "id": "056b8594-3f8a-4fd3-89f5-ee9fdf999752", |
22 | 22 | "metadata": { |
23 | 23 | "editable": true, |
|
51 | 51 | "data": { |
52 | 52 | "text/markdown": [ |
53 | 53 | "$\\begin{array}{l l l}\n", |
54 | | - "\\begin{array}{l} {\\small{\\textsf{Testing \\& Symbol: }}} \\end{array}&\\begin{array}{l} {\\small{a=1}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{Test 2 for \\& symbol}}} \\end{array}\\\\ \n", |
55 | | - "\\begin{array}{l} {\\small{\\textsf{Testing negative results: }}} \\end{array}&\\begin{array}{l} {\\small{b=-5.253 \\ ft=-5.25 \\ ft}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
56 | | - "\\begin{array}{l} {\\small{\\textsf{Testing Commas in Variable Names: }}} \\end{array}&\\begin{array}{l} {\\small{b_{a,1}=10+5=15.0}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
57 | | - "\\begin{array}{l} {\\small{\\textsf{Testing Greek Character: }}} \\end{array}&\\begin{array}{l} {\\small{\\psi=1.4}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
| 54 | + "{\\small{\\textsf{Testing \\& Symbol: }}}&{\\small{a=1}}&{\\small{\\textsf{Test 2 for \\& symbol}}}\\\\ \n", |
| 55 | + "{\\small{\\textsf{Testing negative results: }}}&{\\small{b=-5.253 \\ ft=-5.25 \\ ft}}&\\\\ \n", |
| 56 | + "{\\small{\\textsf{Testing Commas in Variable Names: }}}&{\\small{b_{a,1}=10+5=15.0}}&\\\\ \n", |
| 57 | + "{\\small{\\textsf{Testing Greek Character: }}}&{\\small{\\psi=1.4}}&\\\\ \n", |
58 | 58 | "\\end{array}$" |
59 | 59 | ], |
60 | 60 | "text/plain": [ |
|
91 | 91 | "data": { |
92 | 92 | "text/markdown": [ |
93 | 93 | "$\\begin{array}{l l l}\n", |
94 | | - "\\begin{array}{l} {\\small{\\textsf{String value: }}} \\end{array}&\\begin{array}{l} {\\small{my_{string}=\\textsf{Hello, World!}}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
95 | | - "\\begin{array}{l} {\\small{\\textsf{String 2: }}} \\end{array}&\\begin{array}{l} {\\small{my_{other_{string}}=my_{string}+\\textsf{ How are you?}}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
96 | | - "\\begin{array}{l} {\\small{\\textsf{Test String If: }}} \\end{array}&\\begin{array}{l} {\\small{a=\\textsf{True} \\hspace{0.5em}\\textsf{ if } my_{string}=\\textsf{Hello, World!} }} \\\\ \\hspace{2em} {\\small{\\textsf{else } \\textsf{False}}} \\\\ \\hspace{2em} {\\small{=\\textsf{True}}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
| 94 | + "{\\small{\\textsf{String value: }}}&{\\small{my_{string}=\\textsf{Hello, World!}}}&\\\\ \n", |
| 95 | + "{\\small{\\textsf{String 2: }}}&{\\small{my_{other_{string}}=my_{string}+\\textsf{ How are you?}}}&\\\\ \n", |
| 96 | + "{\\small{\\textsf{Test String If: }}}&{\\small{a=\\textsf{True} \\hspace{0.5em}\\textsf{ if } my_{string}=\\textsf{Hello, World!} }}&\\\\ \n", |
| 97 | + "&\\hspace{2em}{\\small{\\textsf{else } \\textsf{False}}}&\\\\ \n", |
| 98 | + "&\\hspace{2em}{\\small{=\\textsf{True}}}&\\\\ \n", |
97 | 99 | "\\end{array}$" |
98 | 100 | ], |
99 | 101 | "text/plain": [ |
|
121 | 123 | "data": { |
122 | 124 | "text/markdown": [ |
123 | 125 | "$\\begin{array}{l l l}\n", |
124 | | - "\\begin{array}{l} {\\small{\\textsf{Freezing Temperature: }}} \\end{array}&\\begin{array}{l} {\\small{T_{F}=32 \\ degF=0.0 \\ °C}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{Should yield 0 degC}}} \\end{array}\\\\ \n", |
| 126 | + "{\\small{\\textsf{Freezing Temperature: }}}&{\\small{T_{F}=32 \\ degF=0.0 \\ °C}}&{\\small{\\textsf{Should yield 0 degC}}}\\\\ \n", |
125 | 127 | "\\end{array}$" |
126 | 128 | ], |
127 | 129 | "text/plain": [ |
|
147 | 149 | }, |
148 | 150 | { |
149 | 151 | "cell_type": "code", |
150 | | - "execution_count": 24, |
| 152 | + "execution_count": 5, |
151 | 153 | "id": "55e48d77", |
152 | 154 | "metadata": {}, |
153 | 155 | "outputs": [ |
154 | 156 | { |
155 | 157 | "data": { |
156 | 158 | "text/markdown": [ |
157 | 159 | "$\\begin{array}{l l l}\n", |
158 | | - "\\begin{array}{l} {\\small{\\textsf{Dummy Var: }}} \\end{array}&\\begin{array}{l} {\\small{v_{d}=5.0}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
159 | | - "\\begin{array}{l} {\\small{\\textsf{Ratio: }}} \\end{array}&\\begin{array}{l} {\\small{r=\\dfrac{2}{3^{{v_{d}}}}=0.00823}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{Should yield 0.00823}}} \\end{array}\\\\ \n", |
160 | | - "\\begin{array}{l} {\\small{\\textsf{Ratio: }}} \\end{array}&\\begin{array}{l} {\\small{r=\\dfrac{2}{3^{v_{d}}}=0.00823}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{Should yield 0.00823}}} \\end{array}\\\\ \n", |
161 | | - "\\begin{array}{l} {\\small{\\textsf{Ratio: }}} \\end{array}&\\begin{array}{l} {\\small{r=\\left(\\dfrac{2}{3}\\right)^{v_{d}}=0.13169}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{Should yield 0.13169}}} \\end{array}\\\\ \n", |
| 160 | + "{\\small{\\textsf{Dummy Var: }}}&{\\small{v_{d}=5.0}}&\\\\ \n", |
| 161 | + "{\\small{\\textsf{Ratio: }}}&{\\small{r=\\dfrac{2}{3}^{v_{d}}=0.00823}}&{\\small{\\textsf{Should yield 0.00823}}}\\\\ \n", |
| 162 | + "{\\small{\\textsf{Ratio: }}}&{\\small{r=\\dfrac{2}{3^{v_{d}}}=0.00823}}&{\\small{\\textsf{Should yield 0.00823}}}\\\\ \n", |
| 163 | + "{\\small{\\textsf{Ratio: }}}&{\\small{r=\\left(\\dfrac{2}{3}\\right)^{v_{d}}=0.13169}}&{\\small{\\textsf{Should yield 0.13169}}}\\\\ \n", |
162 | 164 | "\\end{array}$" |
163 | 165 | ], |
164 | 166 | "text/plain": [ |
|
195 | 197 | "data": { |
196 | 198 | "text/markdown": [ |
197 | 199 | "$\\begin{array}{l l l}\n", |
198 | | - "\\begin{array}{l} {\\small{\\textsf{Operating Speed: }}} \\end{array}&\\begin{array}{l} {\\small{\\omega =1800 \\ rpm=30 \\ Hz}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{Should yield 30 Hz}}} \\end{array}\\\\ \n", |
| 200 | + "{\\small{\\textsf{Operating Speed: }}}&{\\small{\\omega =1800 \\ rpm=30 \\ Hz}}&{\\small{\\textsf{Should yield 30 Hz}}}\\\\ \n", |
199 | 201 | "\\end{array}$" |
200 | 202 | ], |
201 | 203 | "text/plain": [ |
|
230 | 232 | "data": { |
231 | 233 | "text/markdown": [ |
232 | 234 | "$\\begin{array}{l l l}\n", |
233 | | - "\\begin{array}{l} {\\small{\\textsf{Specified Yield Strength: }}} \\end{array}&\\begin{array}{l} {\\small{F_{y}=50 \\ ksi}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{Testing}}} \\\\ {\\small{\\textsf{reference line breaks}}} \\end{array}\\\\ \n", |
234 | | - "\\begin{array}{l} {\\small{\\textsf{Plastic Section}}} \\\\ {\\small{\\textsf{Modulus: }}} \\end{array}&\\begin{array}{l} {\\small{Z_{x}=15 \\ in^{3}}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{Testing description line breaks}}} \\end{array}\\\\ \n", |
235 | | - "\\begin{array}{l} {\\small{\\textsf{Nominal Yield Strength: }}} \\end{array}&\\begin{array}{l} {\\small{M_{y}=F_{y}\\cdot{}Z_{x}+}} \\\\ \\hspace{2em} {\\small{0 \\ kft=62 \\ kft}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{Added + 0*kft to test equation line breaks}}} \\end{array}\\\\ \n", |
| 235 | + "{\\small{\\textsf{Specified Yield Strength: }}}&{\\small{F_{y}=50 \\ ksi}}&{\\small{\\textsf{Testing}}}\\\\ \n", |
| 236 | + "&&{\\small{\\textsf{reference line breaks}}}\\\\ \n", |
| 237 | + "{\\small{\\textsf{Plastic Section}}}&{\\small{Z_{x}=15 \\ in^{3}}}&{\\small{\\textsf{Testing description line breaks}}}\\\\ \n", |
| 238 | + "{\\small{\\textsf{Modulus: }}}&&\\\\ \n", |
| 239 | + "{\\small{\\textsf{Nominal Yield Strength: }}}&{\\small{M_{y}=F_{y}\\cdot{}Z_{x}+}}&{\\small{\\textsf{Added + 0*kft to test equation line breaks}}}\\\\ \n", |
| 240 | + "&\\hspace{2em}{\\small{0 \\ kft=62 \\ kft}}&\\\\ \n", |
236 | 241 | "\\end{array}$" |
237 | 242 | ], |
238 | 243 | "text/plain": [ |
|
274 | 279 | "data": { |
275 | 280 | "text/markdown": [ |
276 | 281 | "$\\begin{array}{l l l}\n", |
277 | | - "\\begin{array}{l} {\\small{\\textsf{Tax Rate: }}} \\end{array}&\\begin{array}{l} {\\small{tax_{rate}=15\\%=15 \\ \\%}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
278 | | - "\\begin{array}{l} {\\small{\\textsf{Price: }}} \\end{array}&\\begin{array}{l} {\\small{price=100}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
279 | | - "\\begin{array}{l} {\\small{\\textsf{Tax Amount: }}} \\end{array}&\\begin{array}{l} {\\small{tax=price\\cdot{}tax_{rate}=15.0}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
280 | | - "\\begin{array}{l} {\\small{\\textsf{Total: }}} \\end{array}&\\begin{array}{l} {\\small{total=price+tax=115.0}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
| 282 | + "{\\small{\\textsf{Tax Rate: }}}&{\\small{tax_{rate}=15\\%=15 \\ \\%}}&\\\\ \n", |
| 283 | + "{\\small{\\textsf{Price: }}}&{\\small{price=100}}&\\\\ \n", |
| 284 | + "{\\small{\\textsf{Tax Amount: }}}&{\\small{tax=price\\cdot{}tax_{rate}=15.0}}&\\\\ \n", |
| 285 | + "{\\small{\\textsf{Total: }}}&{\\small{total=price+tax=115.0}}&\\\\ \n", |
281 | 286 | "\\end{array}$" |
282 | 287 | ], |
283 | 288 | "text/plain": [ |
|
298 | 303 | }, |
299 | 304 | { |
300 | 305 | "cell_type": "code", |
301 | | - "execution_count": 21, |
| 306 | + "execution_count": 9, |
302 | 307 | "id": "6ebfe8f0", |
303 | 308 | "metadata": {}, |
304 | 309 | "outputs": [ |
305 | 310 | { |
306 | 311 | "data": { |
307 | 312 | "text/markdown": [ |
308 | 313 | "$\\begin{array}{l l l}\n", |
309 | | - "\\begin{array}{l} {\\small{\\textsf{Subscripted Variable: }}} \\end{array}&\\begin{array}{l} {\\small{A_{B}=100}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
310 | | - "\\begin{array}{l} {\\small{\\textsf{Subscripted Variable with Exponent: }}} \\end{array}&\\begin{array}{l} {\\small{C=A_{B}^{2}}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
| 314 | + "{\\small{\\textsf{Subscripted Variable: }}}&{\\small{A_{B}=100}}&\\\\ \n", |
| 315 | + "{\\small{\\textsf{Subscripted Variable with Exponent: }}}&{\\small{C={A_{B}}^{2}}}&\\\\ \n", |
311 | 316 | "\\end{array}$" |
312 | 317 | ], |
313 | 318 | "text/plain": [ |
|
326 | 331 | }, |
327 | 332 | { |
328 | 333 | "cell_type": "code", |
329 | | - "execution_count": 23, |
| 334 | + "execution_count": 10, |
330 | 335 | "id": "7dbc355c", |
331 | 336 | "metadata": {}, |
332 | 337 | "outputs": [ |
333 | 338 | { |
334 | 339 | "data": { |
335 | 340 | "text/markdown": [ |
336 | 341 | "$\\begin{array}{l l l}\n", |
337 | | - "\\begin{array}{l} {\\small{\\textsf{Steel Can Inside Diameter: }}} \\end{array}&\\begin{array}{l} {\\small{D_{c}=9 \\ ft}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
338 | | - "\\begin{array}{l} {\\small{\\textsf{Steel Can Wall Thickness: }}} \\end{array}&\\begin{array}{l} {\\small{t_{w}=\\dfrac{1}{4} \\ in}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
339 | | - "\\begin{array}{l} {\\small{\\textsf{Steel Can Cross-Sectional Area: }}} \\end{array}&\\begin{array}{l} {\\small{A_{c}=\\pi \\cdot{}\\left(\\dfrac{\\left(D_{c}+2\\cdot{}t_{w}\\right)^{2}}{4}-\\dfrac{D_{c^{{2}}}}{4}\\right)=85.0 \\ in²}} \\end{array}&\\begin{array}{l} {\\small{\\textsf{}}} \\end{array}\\\\ \n", |
| 342 | + "{\\small{\\textsf{Steel Can Inside Diameter: }}}&{\\small{D_{c}=9 \\ ft}}&\\\\ \n", |
| 343 | + "{\\small{\\textsf{Steel Can Wall Thickness: }}}&{\\small{t_{w}=\\dfrac{1}{4} \\ in}}&\\\\ \n", |
| 344 | + "{\\small{\\textsf{Steel Can Cross-Sectional Area: }}}&{\\small{A_{c}=\\pi \\cdot{}\\left(\\dfrac{\\left(D_{c}+2\\cdot{}t_{w}\\right)^{2}}{4}-\\dfrac{{D_{c}}^{2}}{4}\\right)=85.0 \\ in²}}&\\\\ \n", |
340 | 345 | "\\end{array}$" |
341 | 346 | ], |
342 | 347 | "text/plain": [ |
|
353 | 358 | "Steel Can Wall Thickness: t_w = (1)/(4)*inch\n", |
354 | 359 | "Steel Can Cross-Sectional Area: A_c = pi*(((D_c + 2*t_w)**2)/(4) - (D_c**2)/(4)) -> 1*inch**2" |
355 | 360 | ] |
| 361 | + }, |
| 362 | + { |
| 363 | + "cell_type": "markdown", |
| 364 | + "id": "3e2165d3", |
| 365 | + "metadata": {}, |
| 366 | + "source": [ |
| 367 | + "## Testing multi-line formatting" |
| 368 | + ] |
| 369 | + }, |
| 370 | + { |
| 371 | + "cell_type": "code", |
| 372 | + "execution_count": 11, |
| 373 | + "id": "42de8849", |
| 374 | + "metadata": {}, |
| 375 | + "outputs": [ |
| 376 | + { |
| 377 | + "data": { |
| 378 | + "text/markdown": [ |
| 379 | + "$\\begin{array}{l l l}\n", |
| 380 | + "{\\small{\\textsf{Parme beta Factor: }}}&{\\small{\\beta _{1}=0.65 \\hspace{0.5em}\\textsf{ if } 3000<4000 }}&{\\small{\\textsf{ACI 318}}}\\\\ \n", |
| 381 | + "&\\hspace{2em}{\\small{\\textsf{else } 0.85}}&\\\\ \n", |
| 382 | + "&\\hspace{2em}{\\small{=0.65}}&\\\\ \n", |
| 383 | + "\\end{array}$" |
| 384 | + ], |
| 385 | + "text/plain": [ |
| 386 | + "<IPython.core.display.Markdown object>" |
| 387 | + ] |
| 388 | + }, |
| 389 | + "metadata": {}, |
| 390 | + "output_type": "display_data" |
| 391 | + } |
| 392 | + ], |
| 393 | + "source": [ |
| 394 | + "%%calc\n", |
| 395 | + "Parme beta Factor: beta_1 = 0.65 if 3000 < 4000 else 0.85 -> 3 # ACI 318" |
| 396 | + ] |
356 | 397 | } |
357 | 398 | ], |
358 | 399 | "metadata": { |
|
0 commit comments