MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getQuantity

Method getQuantity

src/App/Expression.cpp:1908–1913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1906 }
1907
1908 Quantity getQuantity() const override {
1909 if (n < 2)
1910 throw ExpressionError("Invalid number of entries: at least two required.");
1911 else
1912 return Quantity((M2 / (n - 1.0)).pow(Quantity(0.5)).getValue(), mean.getUnit());
1913 }
1914
1915private:
1916 unsigned int n{0};

Callers

nothing calls this directly

Calls 4

QuantityClass · 0.70
getValueMethod · 0.45
powMethod · 0.45
getUnitMethod · 0.45

Tested by

no test coverage detected