This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% https://www.poshenloh.com/quadratic/ | |
function rts = altRoots(p2) | |
if p2(1) ~= 1 | |
p2 = p2 / p2(1); | |
end | |
average_value = p2(2) / 2; | |
product_value = p2(3); | |
distance = sqrt(average_value^2 - product_value); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def printmsk(var, level=1, name=None): | |
""" | |
Print the meta-skeleton of a variable with nested variables. | |
:param var: any, variable to inspect. | |
:param level: int (optional), level of the variable to inspect. Default: 1. | |
:param name: name (optional), name of the variable to inspect. Default: None. | |
:return: None | |
Example: |