Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welche Rechenoperationen sind möglich #28

Open
sputeanus opened this issue Aug 14, 2023 · 8 comments
Open

Welche Rechenoperationen sind möglich #28

sputeanus opened this issue Aug 14, 2023 · 8 comments

Comments

@sputeanus
Copy link
Collaborator

Es müsste eine kurze Liste der wichtigsten Rechenoperationen geben oder eine Seite Verlinkt sein, wo die stehen

@sputeanus
Copy link
Collaborator Author

\SI{Zufallszahl}{Einheit} scheint erstmal nicht zu funktionieren

@sputeanus
Copy link
Collaborator Author

sputeanus commented Aug 14, 2023

Die Zufallszahl scheint generell komisch zu interargieren, wenn man nochmal einen geschweifte Klammer druchherum setzt.
Beispielsweise
Der Basisstorm ist $\frac{{context.rnum(__KEY2__, 4, 6)}}{b}\si{\volt} -\SI{0.7}{\volt} \cdot {{context.rnum(__KEY1__, 1000, 2000)}} $
erzeugt.
grafik

Wenn man noch eine weitere geschweifte Klammer rumsetzt gibt es eine Fehlermeldung.

@sputeanus
Copy link
Collaborator Author

Die Keys scheinen nicht alleine entscheidend zu sein, auch die Reihenfolge in der sie auftauchen...
Richtige Lösung

Der Basisstorm ist \begin{equation} I_B=\frac{U_q-\SI{0,7}{\volt}}{R_B} \end{equation} Im konkreten Fall für $R_B={{context.rnum(__KEY1__, 1000, 2000)}}\text{ }\si{\ohm}$r und $U_q={{context.rnum(__KEY2__, 4, 6)}}\text{ }\si{\volt}$ ergibt sich $I_B={{context.rnum(__KEY2__, 4, 6)/(context.rnum(__KEY1__, 1000, 2000))}}$ \si{\ampere}

grafik

Falsche Lösung

Der Basisstorm ist \begin{equation} I_B=\frac{U_q-\SI{0,7}{\volt}}{R_B} \end{equation} Im konkreten Fall für $U_q={{context.rnum(__KEY2__, 4, 6)}}\text{ }\si{\volt}$ und $R_B={{context.rnum(__KEY1__, 1000, 2000)}}\text{ }\si{\ohm}$r ergibt sich $I_B={{context.rnum(__KEY2__, 4, 6)/(context.rnum(__KEY1__, 1000, 2000))}}$ \si{\ampere}

grafik

Man beachte, dass eigentlich nur im Text vor der eigentlichen Gleichung die Reihenfolge der beiden Keys vertauscht wurde.

@sputeanus
Copy link
Collaborator Author

sputeanus commented Aug 14, 2023

Funktionierende Oparoteren sind soweit
+
-
*
/

Wobei die Division Probleme mit der Reihenfolge zu haben scheint (siehe oben)

  • Klammersetzung funktioniert wie man es erwartet
  • Statt Dollarzeichen kann man auch die Equation Umgebung nutzen

@sputeanus
Copy link
Collaborator Author

Wie man sieht ist Runden noch so ne Sache....

@sputeanus
Copy link
Collaborator Author

Die Zufallszahl muss gar nicht im Mathemodus sein tatsächlich zumindest, wenn man einzelne Zahlen schreiben will.

@sputeanus
Copy link
Collaborator Author

sputeanus commented Aug 14, 2023

Man kann die Zufallszahlen sogar in Grafiken einbauen und sie so anpassen, einfach ohne $$ zb. in die x-Ticks schreiben etc.

grafik
Man erkennt hier, dass die Kurve angepasst wurde, sodass die 1,8mA rauskommen, die rauskommen sollen.

@weber-niklas
Copy link
Collaborator

Eine Dokumentation der funktionierenden Rechenoperationen ist hier zu finden:
https://jinja.palletsprojects.com/en/3.0.x/templates/#math

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants