2
$\begingroup$

When I try to run the following code, Mathematica gives me an error message: "Solve was unable to determine the units of quantities that appear in the input."

With[{}, Solve[Quantity[-135, 1/"Hertz"] == 
10 Log10[QuantityVariable["x", 1/"Hertz"]], QuantityVariable["x", 1/"Hertz"]] // Normal]

It turns out the Mathematica does not recognize the (1/Hertz) unit in QuantityVariable["x", 1/("Hertz")]. I get the same error even if I modified the code a bit:

With[{}, Solve[Quantity[-135, "Seconds"] == 10 Log10[QuantityVariable["x", "Seconds"]], QuantityVariable["x", "Seconds"]] // Normal]

Is there a better way to write the previous code for Solve to give a correct answer?

Thanks

$\endgroup$

1 Answer 1

1
$\begingroup$

your code does not work because

Hope this helps

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.