瀏覽代碼

Fix scaling factor in custom obj fn display

Kirk Trombley 3 年之前
父節點
當前提交
e1a39acae0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      nearest.js

+ 2 - 2
nearest.js

@@ -274,13 +274,13 @@ const updateObjective = () => {
       tex = TeXZilla.toMathML(String.raw`
         ${mathArgBest("min", "P")}
         \left[
-          ${includeX ? String.raw`I\left(P\right)` : ""}
+          ${includeX ? String.raw`${includeScaleFactor(muArg)}I\left(P\right)` : ""}
           ${closeCoeff === 0 ? "" : String.raw`
               -
               ${closeCoeff}
               ${qyMod("\\vec{q}")}
               \cdot
-              ${qyMod(String.raw`\vec{\mu}\left(${muArg}\right)`)}
+              ${includeScaleFactor(muArg)}${qyMod(String.raw`\vec{\mu}\left(${muArg}\right)`)}
           `}
         \right]
       `);