New answers tagged


To address the issue use some Off[NumberForm::sigz] in Manipulate[...]. It is also better to use simple Epilog with Text[Row[...] (code below): Some code picture:


The system sys has 1 input and 2 outputs, while sysConnected has 2 inputs and 2 outputs. SystemsModelDimensions /@ {sys, sysConnected} {{1, 2}, {2, 2}} When you give a scalar as the input to a single-input system, there is no ambiguity. So the output response of sys has two elements for the two outputs. When you give a scalar as the input to a ...


Maybe this will fit your needs: myPrint[args__, {style__}] := Print[Row[{args}, BaseStyle -> {style}]] myPrint["Mass of the atmosphere is: ", m, {FontSize -> 18, FontWeight -> Bold, Background -> LightRed}] myPrint["Mass of the atmosphere is: ", m, {"Section"}]


define your styles beforehand, style1 = Style[#, 12] &; style2 = Style[#, 24, Blue, Background -> Pink] &; and then just use them quickly and easily, Print["Variable a = ", style1@a]; Print["Variable b = ", style1@b]; Print["The result: a + b = ", style2@c];


Style recommendation: Never use a variable name starting with an upper-case letter as it may conflict with Mathematica's internal naming convention. myPotential[q1_, q2_, q3_, r_List, a_List, b_List, c_List] := (q1/Sqrt[Dot[r - a, r - a]] + q2/Sqrt[Dot[r - b, r - b]] + q3/Sqrt[Dot[r - c, r - c]]); myDelDotPotential[q1_, q2_, q3_, r_, a_, b_, ...


This is not a bug. It is an expected result of numerical roundoff error and the somewhat unusual way Mathematica computes division. What is roundoff error? Floating point numbers have a finite precision. With almost any arithmetic operation performed, the result is not exact: digits beyond about the 16th get discarded. What's special about how ...

Top 50 recent answers are included