I'm trying to get the R+ Solutions to a school problem with solve. Everything works fine with Dom -> Reals
but when I try Dom -> PositiveReals
it throws no solutions even if they exists.
(* Data *)
epsilon = 0.3;
Tinf = Quantity[295.15, "Kelvins"];
Q = Quantity[5000, "Watts"/"Meters"^2];
h = Quantity[10, "Watts"/("Meters"^2*"Kelvins")];
sigma = Quantity[5*10^-8, "Watts"/("Meters"^2*"Kelvins"^4)];
(* Equations *)
Qconv[T_] := h (T - Tinf)
Qrad[T_] := sigma*epsilon*(T^4 - Tinf^4)
Solve[Q == Qconv[T] + Qrad[T], T, Reals]
Executing this code throws
{{T -> Quantity[-1055.54, "Kelvins"]}, {T -> Quantity[605.245, "Kelvins"]}}
But when I limit the solution to R+
Input: Solve[Q == Qconv[T] + Qrad[T], T, PositiveReals]
Ouput: {}
Why is this happening ? How do I fix this "error" ?
Edit
As explained in comments Element[Quantity[#, "Kelvins"], PositiveReals]
never returns True.
Is there a way to Take the QuantityMagnitude[]
for Domain comparation ?
Element[Quantity[605.2454186793566`, "Kelvins"], PositiveReals]
does not returnTrue
. It's somewhat ambiguous to look at signs of quantities: ifQuantity[20, "DegreesFahrenheit"]
is positive, is it's corresponding value in Celsius positive too? $\endgroup$