소스 검색

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]
       `);