You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the polishing branch, intializations that refer to rand() or randn() already look a bit nicer. But I think we could use this as a first example of automatic annotation with additional analysis.
If an expression only contains a single rand() call, we can use sympy's substitution mechanism and substitute it once with 0 and once with 1, and then use this to display the lower and upper bounds. So if you have an initialization like:
v = El + (V_th - El)*rand()
This would currently be displayed as:
but we could further annotate this with something like
We could probably do something fancy with sympy as well to get the mean and variance of a normal distribution if the expression uses randn().
The text was updated successfully, but these errors were encountered:
With the
polishing
branch, intializations that refer torand()
orrandn()
already look a bit nicer. But I think we could use this as a first example of automatic annotation with additional analysis.If an expression only contains a single
rand()
call, we can use sympy's substitution mechanism and substitute it once with 0 and once with 1, and then use this to display the lower and upper bounds. So if you have an initialization like:This would currently be displayed as:
![image](https://user-images.githubusercontent.com/1381982/98388906-a22a7d00-2053-11eb-938d-d66672c72599.png)
but we could further annotate this with something like
![image](https://user-images.githubusercontent.com/1381982/98389067-db62ed00-2053-11eb-9f29-41e6083aa088.png)
We could probably do something fancy with sympy as well to get the mean and variance of a normal distribution if the expression uses
randn()
.The text was updated successfully, but these errors were encountered: