Quantcast
Channel: Active questions tagged units - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 41

Plotting a function with units gives two different results

$
0
0

With the following code block, I plot a function with units in it in two different ways. Both ways should do the same in my understanding of the documentation.

cm = Quantity["Centimeters"];f[x_] := Sqrt[x + 5 cm]Plot[Evaluate@{f[zz cm]}, {zz, -5, 5}]Plot[Evaluate@{f[zz]}, {zz, -5 cm, 5 cm}]Plot[Evaluate@{Sqrt[zz]}, {zz, -5 cm, 5 cm}]

Plots

Can anyone explain why it does that?


Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>