factor eval_13()/grad_13() for fewer multiplies

This oh-so-slightly tweaks the best fits.

Change-Id: I84ab8a47c2db16c992d1be696205b47e1d41294c
Reviewed-on: https://skia-review.googlesource.com/123100
Commit-Queue: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: Mike Klein <mtklein@chromium.org>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/profiles/color.org/Lower_Left.icc.txt b/profiles/color.org/Lower_Left.icc.txt
index 0355717..cf34bae 100644
--- a/profiles/color.org/Lower_Left.icc.txt
+++ b/profiles/color.org/Lower_Left.icc.txt
@@ -17,13 +17,13 @@
  'bXYZ' : 'XYZ ' :     20 : 512
 
 rTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 gTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 bTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 Best : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
  XYZ : | 0.385116577 0.143051147 0.436035156 |
        | 0.716903687 0.060607910 0.222488403 |
        | 0.097061157 0.713912964 0.013916016 |
diff --git a/profiles/color.org/Lower_Right.icc.txt b/profiles/color.org/Lower_Right.icc.txt
index 95b185e..8b35a8d 100644
--- a/profiles/color.org/Lower_Right.icc.txt
+++ b/profiles/color.org/Lower_Right.icc.txt
@@ -17,13 +17,13 @@
  'bXYZ' : 'XYZ ' :     20 : 540
 
 rTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 gTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 bTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 Best : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
  XYZ : | 0.609741211 0.205276489 0.149185181 |
        | 0.311111450 0.625671387 0.063217163 |
        | 0.019470215 0.060867310 0.744567871 |
diff --git a/profiles/color.org/Upper_Left.icc.txt b/profiles/color.org/Upper_Left.icc.txt
index 1b2815c..f68316d 100644
--- a/profiles/color.org/Upper_Left.icc.txt
+++ b/profiles/color.org/Upper_Left.icc.txt
@@ -18,7 +18,7 @@
  'B2A1' : 'mBA ' :   1792 : 5668
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "M", Matrix, "B"
  "M" : 3 inputs
   M0 : 16-bit table with 256 entries
diff --git a/profiles/color.org/Upper_Right.icc.txt b/profiles/color.org/Upper_Right.icc.txt
index cf1ac20..3a00dfc 100644
--- a/profiles/color.org/Upper_Right.icc.txt
+++ b/profiles/color.org/Upper_Right.icc.txt
@@ -15,7 +15,7 @@
  'A2B1' : 'mAB ' :   1792 : 2264
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "M", Matrix, "B"
  "A" : 3 inputs
   A0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
diff --git a/profiles/color.org/sRGB2014.icc.txt b/profiles/color.org/sRGB2014.icc.txt
index 29e35e5..eda8d36 100644
--- a/profiles/color.org/sRGB2014.icc.txt
+++ b/profiles/color.org/sRGB2014.icc.txt
@@ -24,13 +24,13 @@
 
 rTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 gTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 bTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 Best : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (D-gap: 0)
  ~13 : 0.305292x^3 + 0.682192x^2 + 0.0125157x (Max error: 0.00166641)
  XYZ : | 0.436065674 0.385147095 0.143066406 |
diff --git a/profiles/color.org/sRGB_ICC_v4_Appearance.icc.txt b/profiles/color.org/sRGB_ICC_v4_Appearance.icc.txt
index d487382..06d22fc 100644
--- a/profiles/color.org/sRGB_ICC_v4_Appearance.icc.txt
+++ b/profiles/color.org/sRGB_ICC_v4_Appearance.icc.txt
@@ -16,7 +16,7 @@
  'rig0' : 'sig ' :     12 : 63856
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "M", Matrix, "B"
  "A" : 3 inputs
   A0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
diff --git a/profiles/color.org/sRGB_v4_ICC_preference.icc.txt b/profiles/color.org/sRGB_v4_ICC_preference.icc.txt
index 16370c5..b87368c 100644
--- a/profiles/color.org/sRGB_v4_ICC_preference.icc.txt
+++ b/profiles/color.org/sRGB_v4_ICC_preference.icc.txt
@@ -16,7 +16,7 @@
  'chad' : 'sf32' :     44 : 60916
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "M", Matrix, "B"
  "A" : 3 inputs
   A0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
diff --git a/profiles/misc/AdobeColorSpin.icc.txt b/profiles/misc/AdobeColorSpin.icc.txt
index 11df0ea..41155a5 100644
--- a/profiles/misc/AdobeColorSpin.icc.txt
+++ b/profiles/misc/AdobeColorSpin.icc.txt
@@ -16,13 +16,13 @@
  'bTRC' : 'curv' :     14 : 476
 
 rTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 gTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 bTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 Best : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
  XYZ : | 0.205276489 0.149185181 0.609741211 |
        | 0.625671387 0.063217163 0.311111450 |
        | 0.060867310 0.744552612 0.019470215 |
diff --git a/profiles/misc/AdobeRGB.icc.txt b/profiles/misc/AdobeRGB.icc.txt
index 95b185e..8b35a8d 100644
--- a/profiles/misc/AdobeRGB.icc.txt
+++ b/profiles/misc/AdobeRGB.icc.txt
@@ -17,13 +17,13 @@
  'bXYZ' : 'XYZ ' :     20 : 540
 
 rTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 gTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 bTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 Best : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
  XYZ : | 0.609741211 0.205276489 0.149185181 |
        | 0.311111450 0.625671387 0.063217163 |
        | 0.019470215 0.060867310 0.744567871 |
diff --git a/profiles/misc/Apple_Color_LCD.icc.txt b/profiles/misc/Apple_Color_LCD.icc.txt
index 7f7c9b9..1dd5b4f 100644
--- a/profiles/misc/Apple_Color_LCD.icc.txt
+++ b/profiles/misc/Apple_Color_LCD.icc.txt
@@ -25,13 +25,13 @@
 
 rTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000251848) (D-gap: 0)
- ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125226x (Max error: 0.0016763)
+ ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125225x (Max error: 0.00167631)
 gTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000251848) (D-gap: 0)
- ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125226x (Max error: 0.0016763)
+ ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125225x (Max error: 0.00167631)
 bTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000251848) (D-gap: 0)
- ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125226x (Max error: 0.0016763)
+ ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125225x (Max error: 0.00167631)
 Best : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (D-gap: 0)
  ~13 : 0.305292x^3 + 0.682192x^2 + 0.0125157x (Max error: 0.00166641)
  XYZ : | 0.444335938 0.379440308 0.140411377 |
diff --git a/profiles/misc/Apple_Wide_Color.icc.txt b/profiles/misc/Apple_Wide_Color.icc.txt
index 9521d5b..0bb5383 100644
--- a/profiles/misc/Apple_Wide_Color.icc.txt
+++ b/profiles/misc/Apple_Wide_Color.icc.txt
@@ -15,7 +15,7 @@
  'A2B1' : 'mAB ' :  29772 : 408
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "M", Matrix, "B"
  "A" : 3 inputs
   A0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
@@ -24,11 +24,11 @@
 CLUT : 17 x 17 x 17 (16 bpp)
  "M" : 3 inputs
   M0 : 2.39999, 0.947906, 0.0520935, 0.0773926, 0.0393066, 0, 0 (D-gap: -3.51714e-06)
- ~13 : 0.305693x^3 + 0.681725x^2 + 0.0125825x (Max error: 0.00166329)
+ ~13 : 0.305693x^3 + 0.681724x^2 + 0.0125826x (Max error: 0.00166329)
   M1 : 2.39999, 0.947906, 0.0520935, 0.0773926, 0.0393066, 0, 0 (D-gap: -3.51714e-06)
- ~13 : 0.305693x^3 + 0.681725x^2 + 0.0125825x (Max error: 0.00166329)
+ ~13 : 0.305693x^3 + 0.681724x^2 + 0.0125826x (Max error: 0.00166329)
   M2 : 2.39999, 0.947906, 0.0520935, 0.0773926, 0.0393066, 0, 0 (D-gap: -3.51714e-06)
- ~13 : 0.305693x^3 + 0.681725x^2 + 0.0125825x (Max error: 0.00166329)
+ ~13 : 0.305693x^3 + 0.681724x^2 + 0.0125826x (Max error: 0.00166329)
 Mtrx : | 0.507255435 0.301234424 0.155698314 0.000000000 |
        | 0.239345714 0.694691539 0.065977998 0.000000000 |
        | 0.000457757 0.047393076 0.777148783 0.000000000 |
diff --git a/profiles/misc/Coated_FOGRA39_CMYK.icc.txt b/profiles/misc/Coated_FOGRA39_CMYK.icc.txt
index e47905f..d4a6cfa 100644
--- a/profiles/misc/Coated_FOGRA39_CMYK.icc.txt
+++ b/profiles/misc/Coated_FOGRA39_CMYK.icc.txt
@@ -21,7 +21,7 @@
  'gamt' : 'mft1' :  37009 : 617340
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "B"
  "A" : 4 inputs
   A0 : 16-bit table with 256 entries
@@ -31,7 +31,7 @@
   A2 : 16-bit table with 256 entries
   ~= : 1.16035, 1.00803, 0.0113021, 0.708171, 0.00784314, -0.00463676, 0 (Max error: 0.0152175) (D-gap: 0)
   A3 : 16-bit table with 256 entries
- ~13 : 0.158843x^3 + 0.0863405x^2 + 0.754817x (Max error: 0.00133198)
+ ~13 : 0.158843x^3 + 0.0863403x^2 + 0.754817x (Max error: 0.00133204)
 CLUT : 11 x 11 x 11 x 11 (16 bpp)
  "B" : 3 outputs
   B0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
diff --git a/profiles/misc/ColorLogic_ISO_Coated_CMYK.icc.txt b/profiles/misc/ColorLogic_ISO_Coated_CMYK.icc.txt
index 5e2a14a..3bad49b 100644
--- a/profiles/misc/ColorLogic_ISO_Coated_CMYK.icc.txt
+++ b/profiles/misc/ColorLogic_ISO_Coated_CMYK.icc.txt
@@ -21,7 +21,7 @@
  'Info' : 'text' :    902 : 1824620
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "B"
  "A" : 4 inputs
   A0 : 16-bit table with 256 entries
diff --git a/profiles/misc/Color_Spin_Gamma_18.icc.txt b/profiles/misc/Color_Spin_Gamma_18.icc.txt
index 4eacdc2..57e3d75 100644
--- a/profiles/misc/Color_Spin_Gamma_18.icc.txt
+++ b/profiles/misc/Color_Spin_Gamma_18.icc.txt
@@ -16,13 +16,13 @@
  'bTRC' : 'curv' :     14 : 460
 
 rTRC : 1.80078, 1, 0, 0, 0, 0, 0
- ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714538x (Max error: 0.00193666)
+ ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714537x (Max error: 0.00193666)
 gTRC : 1.80078, 1, 0, 0, 0, 0, 0
- ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714538x (Max error: 0.00193666)
+ ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714537x (Max error: 0.00193666)
 bTRC : 1.80078, 1, 0, 0, 0, 0, 0
- ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714538x (Max error: 0.00193666)
+ ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714537x (Max error: 0.00193666)
 Best : 1.80078, 1, 0, 0, 0, 0, 0
- ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714538x (Max error: 0.00193666)
+ ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714537x (Max error: 0.00193666)
  XYZ : | 0.385116577 0.143035889 0.436050415 |
        | 0.716903687 0.060607910 0.222488403 |
        | 0.097061157 0.713912964 0.013916016 |
diff --git a/profiles/misc/DisplayCal_ASUS_NonMonotonic.icc.txt b/profiles/misc/DisplayCal_ASUS_NonMonotonic.icc.txt
index 6dd35a9..8cf1f79 100644
--- a/profiles/misc/DisplayCal_ASUS_NonMonotonic.icc.txt
+++ b/profiles/misc/DisplayCal_ASUS_NonMonotonic.icc.txt
@@ -36,7 +36,7 @@
   ~= : 2.27403, 0.980813, 0.0314167, 0.0311284, 0.192157, -0.0259432, 0 (Max error: 0.0558824) (D-gap: 0)
 bTRC : 16-bit table with 256 entries
   ~= : 2.19997, 1.0228, -0.0143504, 0.00389105, 0.160784, -0.0147935, 0 (Max error: 0.152941) (D-gap: -2.32831e-10)
- ~13 : 0.0959602x^3 + 1.05493x^2 + -0.150893x (Max error: 0.00555612)
+ ~13 : 0.0959603x^3 + 1.05493x^2 + -0.150893x (Max error: 0.00555612)
 Best : 2.27403, 0.980813, 0.0314167, 0.0311284, 0.192157, -0.0259432, 0 (D-gap: 0)
  XYZ : | 0.436737061 0.380325317 0.147140503 |
        | 0.217636108 0.729843140 0.052520752 |
diff --git a/profiles/misc/Dot_Gain_20_Grayscale.icc.txt b/profiles/misc/Dot_Gain_20_Grayscale.icc.txt
index d8e1d93..67d84c6 100644
--- a/profiles/misc/Dot_Gain_20_Grayscale.icc.txt
+++ b/profiles/misc/Dot_Gain_20_Grayscale.icc.txt
@@ -13,15 +13,15 @@
 
 rTRC : 16-bit table with 256 entries
   ~= : 1.73715, 0.999979, 6.92596e-05, 0.0629053, 0.0235294, -1.07513e-05, 0 (Max error: 0.000202142) (D-gap: 0)
- ~13 : -0.183519x^3 + 1.08054x^2 + 0.102974x (Max error: 0.00263339)
+ ~13 : -0.183519x^3 + 1.08054x^2 + 0.102974x (Max error: 0.00263338)
 gTRC : 16-bit table with 256 entries
   ~= : 1.73715, 0.999979, 6.92596e-05, 0.0629053, 0.0235294, -1.07513e-05, 0 (Max error: 0.000202142) (D-gap: 0)
- ~13 : -0.183519x^3 + 1.08054x^2 + 0.102974x (Max error: 0.00263339)
+ ~13 : -0.183519x^3 + 1.08054x^2 + 0.102974x (Max error: 0.00263338)
 bTRC : 16-bit table with 256 entries
   ~= : 1.73715, 0.999979, 6.92596e-05, 0.0629053, 0.0235294, -1.07513e-05, 0 (Max error: 0.000202142) (D-gap: 0)
- ~13 : -0.183519x^3 + 1.08054x^2 + 0.102974x (Max error: 0.00263339)
+ ~13 : -0.183519x^3 + 1.08054x^2 + 0.102974x (Max error: 0.00263338)
 Best : 1.73715, 0.999979, 6.92596e-05, 0.0629053, 0.0235294, -1.07513e-05, 0 (D-gap: 0)
- ~13 : -0.183505x^3 + 1.08052x^2 + 0.10298x (Max error: 0.00262765)
+ ~13 : -0.183504x^3 + 1.08052x^2 + 0.10298x (Max error: 0.00262766)
  XYZ : | 0.964202881 0.000000000 0.000000000 |
        | 0.000000000 1.000000000 0.000000000 |
        | 0.000000000 0.000000000 0.824905396 |
diff --git a/profiles/misc/Generic_RGB_Gamma_18.icc.txt b/profiles/misc/Generic_RGB_Gamma_18.icc.txt
index 2350061..dbc38cb 100644
--- a/profiles/misc/Generic_RGB_Gamma_18.icc.txt
+++ b/profiles/misc/Generic_RGB_Gamma_18.icc.txt
@@ -18,13 +18,13 @@
  'gTRC' : 'curv' :     14 : 1900
 
 rTRC : 1.80078, 1, 0, 0, 0, 0, 0
- ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714538x (Max error: 0.00193666)
+ ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714537x (Max error: 0.00193666)
 gTRC : 1.80078, 1, 0, 0, 0, 0, 0
- ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714538x (Max error: 0.00193666)
+ ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714537x (Max error: 0.00193666)
 bTRC : 1.80078, 1, 0, 0, 0, 0, 0
- ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714538x (Max error: 0.00193666)
+ ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714537x (Max error: 0.00193666)
 Best : 1.80078, 1, 0, 0, 0, 0, 0
- ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714538x (Max error: 0.00193666)
+ ~13 : -0.14516x^3 + 1.07371x^2 + 0.0714537x (Max error: 0.00193666)
  XYZ : | 0.454299927 0.353347778 0.156646729 |
        | 0.241912842 0.673629761 0.084457397 |
        | 0.014892578 0.090637207 0.719573975 |
diff --git a/profiles/misc/Gray_Gamma_22.icc.txt b/profiles/misc/Gray_Gamma_22.icc.txt
index 7e2425e..3329dfe 100644
--- a/profiles/misc/Gray_Gamma_22.icc.txt
+++ b/profiles/misc/Gray_Gamma_22.icc.txt
@@ -12,13 +12,13 @@
  'kTRC' : 'curv' :     14 : 392
 
 rTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 gTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 bTRC : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
 Best : 2.19922, 1, 0, 0, 0, 0, 0
- ~13 : 0.175675x^3 + 0.862451x^2 + -0.0381258x (Max error: 0.00133421)
+ ~13 : 0.175675x^3 + 0.86245x^2 + -0.0381256x (Max error: 0.0013342)
  XYZ : | 0.964202881 0.000000000 0.000000000 |
        | 0.000000000 1.000000000 0.000000000 |
        | 0.000000000 0.000000000 0.824905396 |
diff --git a/profiles/misc/HD_709.icc.txt b/profiles/misc/HD_709.icc.txt
index 01e4cc6..7867362 100644
--- a/profiles/misc/HD_709.icc.txt
+++ b/profiles/misc/HD_709.icc.txt
@@ -25,13 +25,13 @@
 
 rTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000251848) (D-gap: 0)
- ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125226x (Max error: 0.0016763)
+ ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125225x (Max error: 0.00167631)
 gTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000251848) (D-gap: 0)
- ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125226x (Max error: 0.0016763)
+ ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125225x (Max error: 0.00167631)
 bTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000251848) (D-gap: 0)
- ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125226x (Max error: 0.0016763)
+ ~13 : 0.305304x^3 + 0.682173x^2 + 0.0125225x (Max error: 0.00167631)
 Best : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (D-gap: 0)
  ~13 : 0.305292x^3 + 0.682192x^2 + 0.0125157x (Max error: 0.00166641)
  XYZ : | 0.358963013 0.446350098 0.158889771 |
diff --git a/profiles/misc/Japan_Color_2001_Coated.icc.txt b/profiles/misc/Japan_Color_2001_Coated.icc.txt
index 1851ef7..53f071e 100644
--- a/profiles/misc/Japan_Color_2001_Coated.icc.txt
+++ b/profiles/misc/Japan_Color_2001_Coated.icc.txt
@@ -17,14 +17,14 @@
  'gamt' : 'mft1' :  37009 : 520156
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "B"
  "A" : 4 inputs
   A0 : 16-bit table with 256 entries
   ~= : 1.035, 1.04085, -0.0326543, 0.780156, 0.0313726, 0.0244755, 0 (Max error: 0.0307155) (D-gap: 0)
   A1 : 16-bit table with 256 entries
   ~= : 1.11391, 1.02128, -0.0220004, 0.627015, 0.027451, 0.0138406, 0 (Max error: 0.0115468) (D-gap: 0)
- ~13 : -0.304361x^3 + 0.600324x^2 + 0.704036x (Max error: 0.00336152)
+ ~13 : -0.30436x^3 + 0.600324x^2 + 0.704036x (Max error: 0.0033614)
   A2 : 16-bit table with 256 entries
   ~= : 1.14818, 0.997828, 0.0230241, 0.619326, 0.0235294, -0.014941, 0 (Max error: 0.00792223) (D-gap: 0)
   A3 : 16-bit table with 256 entries
diff --git a/profiles/misc/Lexmark_X110.icc.txt b/profiles/misc/Lexmark_X110.icc.txt
index c5b045e..bfa3c53 100644
--- a/profiles/misc/Lexmark_X110.icc.txt
+++ b/profiles/misc/Lexmark_X110.icc.txt
@@ -13,7 +13,7 @@
  'A2B0' : 'mft1' :  16323 : 708
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "B"
  "A" : 3 inputs
   A0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
diff --git a/profiles/misc/MartiMaria_browsertest_A2B.icc.txt b/profiles/misc/MartiMaria_browsertest_A2B.icc.txt
index e82e563..375d57f 100644
--- a/profiles/misc/MartiMaria_browsertest_A2B.icc.txt
+++ b/profiles/misc/MartiMaria_browsertest_A2B.icc.txt
@@ -13,7 +13,7 @@
  'A2B2' : 'mft2' :  29554 : 480
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "B"
  "A" : 3 inputs
   A0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
diff --git a/profiles/misc/MartiMaria_browsertest_HARD.icc.txt b/profiles/misc/MartiMaria_browsertest_HARD.icc.txt
index 7dff8dc..4f2c750 100644
--- a/profiles/misc/MartiMaria_browsertest_HARD.icc.txt
+++ b/profiles/misc/MartiMaria_browsertest_HARD.icc.txt
@@ -23,7 +23,7 @@
   ~= : 1, 0.00387579, 0, 0, 0, 0, 0 (Max error: 5.96046e-08)
 bTRC : 16-bit table with 255 entries
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  XYZ : | 0.964202881 0.000000000 0.964202881 |
        | 1.000000000 0.000000000 1.000000000 |
        | 0.824905396 0.000000000 0.824905396 |
diff --git a/profiles/misc/PrintOpen_ISO_Coated_CMYK.icc.txt b/profiles/misc/PrintOpen_ISO_Coated_CMYK.icc.txt
index 75d5165..2c84568 100644
--- a/profiles/misc/PrintOpen_ISO_Coated_CMYK.icc.txt
+++ b/profiles/misc/PrintOpen_ISO_Coated_CMYK.icc.txt
@@ -20,7 +20,7 @@
  'targ' : 'text' : 126685 : 1702392
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "B"
  "A" : 4 inputs
   A0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
diff --git a/profiles/misc/SWOP_Coated_20_GCR_CMYK.icc.txt b/profiles/misc/SWOP_Coated_20_GCR_CMYK.icc.txt
index edf7735..d2be2fe 100644
--- a/profiles/misc/SWOP_Coated_20_GCR_CMYK.icc.txt
+++ b/profiles/misc/SWOP_Coated_20_GCR_CMYK.icc.txt
@@ -18,7 +18,7 @@
  'AS00' : 'data' :    144 : 723996
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "B"
  "A" : 4 inputs
   A0 : 16-bit table with 256 entries
diff --git a/profiles/misc/US_Web_Coated_SWOP_CMYK.icc.txt b/profiles/misc/US_Web_Coated_SWOP_CMYK.icc.txt
index 4d2d307..91be76f 100644
--- a/profiles/misc/US_Web_Coated_SWOP_CMYK.icc.txt
+++ b/profiles/misc/US_Web_Coated_SWOP_CMYK.icc.txt
@@ -17,7 +17,7 @@
  'gamt' : 'mft1' :  37009 : 520156
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "B"
  "A" : 4 inputs
   A0 : 16-bit table with 256 entries
diff --git a/profiles/misc/XRite_GRACol7_340_CMYK.icc.txt b/profiles/misc/XRite_GRACol7_340_CMYK.icc.txt
index 1f9ef93..31d753a 100644
--- a/profiles/misc/XRite_GRACol7_340_CMYK.icc.txt
+++ b/profiles/misc/XRite_GRACol7_340_CMYK.icc.txt
@@ -21,7 +21,7 @@
  'desc' : 'desc' :    138 : 3472116
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "B"
  "A" : 4 inputs
   A0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
diff --git a/profiles/misc/sRGB_HP.icc.txt b/profiles/misc/sRGB_HP.icc.txt
index 418cddf..010137f 100644
--- a/profiles/misc/sRGB_HP.icc.txt
+++ b/profiles/misc/sRGB_HP.icc.txt
@@ -25,13 +25,13 @@
 
 rTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 gTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 bTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 Best : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (D-gap: 0)
  ~13 : 0.305292x^3 + 0.682192x^2 + 0.0125157x (Max error: 0.00166641)
  XYZ : | 0.436065674 0.385147095 0.143066406 |
diff --git a/profiles/misc/sRGB_HP_2.icc.txt b/profiles/misc/sRGB_HP_2.icc.txt
index f7db62a..bd009e6 100644
--- a/profiles/misc/sRGB_HP_2.icc.txt
+++ b/profiles/misc/sRGB_HP_2.icc.txt
@@ -25,13 +25,13 @@
 
 rTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 gTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 bTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 Best : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (D-gap: 0)
  ~13 : 0.305292x^3 + 0.682192x^2 + 0.0125157x (Max error: 0.00166641)
  XYZ : | 0.436065674 0.385147095 0.143066406 |
diff --git a/profiles/misc/sRGB_ICC_v4_beta.icc.txt b/profiles/misc/sRGB_ICC_v4_beta.icc.txt
index ad62803..e096738 100644
--- a/profiles/misc/sRGB_ICC_v4_beta.icc.txt
+++ b/profiles/misc/sRGB_ICC_v4_beta.icc.txt
@@ -16,7 +16,7 @@
  'rig0' : 'sig ' :     12 : 63916
 
 Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
- ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
+ ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126376x (Max error: 0.00166379)
  A2B : "A", CLUT, "M", Matrix, "B"
  "A" : 3 inputs
   A0 : 1, 1, 0, 0, 0, 0, 0 (Identity)
diff --git a/profiles/misc/sRGB_black_scaled.icc.txt b/profiles/misc/sRGB_black_scaled.icc.txt
index 94af82d..479ac92 100644
--- a/profiles/misc/sRGB_black_scaled.icc.txt
+++ b/profiles/misc/sRGB_black_scaled.icc.txt
@@ -24,13 +24,13 @@
 
 rTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 gTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 bTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 Best : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (D-gap: 0)
  ~13 : 0.305292x^3 + 0.682192x^2 + 0.0125157x (Max error: 0.00166641)
  XYZ : | 0.436065674 0.385147095 0.143066406 |
diff --git a/profiles/misc/sRGB_lcms.icc.txt b/profiles/misc/sRGB_lcms.icc.txt
index 8e58654..7897e7f 100644
--- a/profiles/misc/sRGB_lcms.icc.txt
+++ b/profiles/misc/sRGB_lcms.icc.txt
@@ -18,13 +18,13 @@
  'chrm' : 'chrm' :     36 : 620
 
 rTRC : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
 gTRC : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
 bTRC : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
 Best : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
  XYZ : | 0.435852051 0.385330200 0.143020630 |
        | 0.222381592 0.717041016 0.060592651 |
        | 0.013916016 0.097137451 0.713836670 |
diff --git a/profiles/mobile/Display_P3_LUT.icc.txt b/profiles/mobile/Display_P3_LUT.icc.txt
index 464c59c..2fb015d 100644
--- a/profiles/mobile/Display_P3_LUT.icc.txt
+++ b/profiles/mobile/Display_P3_LUT.icc.txt
@@ -19,13 +19,13 @@
 
 rTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 gTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 bTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 Best : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (D-gap: 0)
  ~13 : 0.305292x^3 + 0.682192x^2 + 0.0125157x (Max error: 0.00166641)
  XYZ : | 0.515121460 0.291976929 0.157104492 |
diff --git a/profiles/mobile/Display_P3_parametric.icc.txt b/profiles/mobile/Display_P3_parametric.icc.txt
index 01bdddc..31416b3 100644
--- a/profiles/mobile/Display_P3_parametric.icc.txt
+++ b/profiles/mobile/Display_P3_parametric.icc.txt
@@ -18,13 +18,13 @@
  'gTRC' : 'para' :     32 : 508
 
 rTRC : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
 gTRC : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
 bTRC : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
 Best : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
  XYZ : | 0.515121460 0.291976929 0.157104492 |
        | 0.241195679 0.692245483 0.066574097 |
        | -0.001037598 0.041885376 0.784072876 |
diff --git a/profiles/mobile/iPhone7p.icc.txt b/profiles/mobile/iPhone7p.icc.txt
index fdc595c..1b3350d 100644
--- a/profiles/mobile/iPhone7p.icc.txt
+++ b/profiles/mobile/iPhone7p.icc.txt
@@ -17,13 +17,13 @@
  'gTRC' : 'para' :     32 : 472
 
 rTRC : 2.39999, 0.947998, 0.052002, 0.0769958, 0.0390015, 0, 0 (D-gap: 4.88153e-06)
- ~13 : 0.305782x^3 + 0.68177x^2 + 0.012448x (Max error: 0.0016624)
+ ~13 : 0.305781x^3 + 0.681771x^2 + 0.012448x (Max error: 0.0016624)
 gTRC : 2.39999, 0.947998, 0.052002, 0.0769958, 0.0390015, 0, 0 (D-gap: 4.88153e-06)
- ~13 : 0.305782x^3 + 0.68177x^2 + 0.012448x (Max error: 0.0016624)
+ ~13 : 0.305781x^3 + 0.681771x^2 + 0.012448x (Max error: 0.0016624)
 bTRC : 2.39999, 0.947998, 0.052002, 0.0769958, 0.0390015, 0, 0 (D-gap: 4.88153e-06)
- ~13 : 0.305782x^3 + 0.68177x^2 + 0.012448x (Max error: 0.0016624)
+ ~13 : 0.305781x^3 + 0.681771x^2 + 0.012448x (Max error: 0.0016624)
 Best : 2.39999, 0.947998, 0.052002, 0.0769958, 0.0390015, 0, 0 (D-gap: 4.88153e-06)
- ~13 : 0.305782x^3 + 0.68177x^2 + 0.012448x (Max error: 0.0016624)
+ ~13 : 0.305781x^3 + 0.681771x^2 + 0.012448x (Max error: 0.0016624)
  XYZ : | 0.515121460 0.291976929 0.157104492 |
        | 0.241195679 0.692245483 0.066574097 |
        | -0.001052856 0.041885376 0.784072876 |
diff --git a/profiles/mobile/sRGB_LUT.icc.txt b/profiles/mobile/sRGB_LUT.icc.txt
index ea1ae8d..19adeb4 100644
--- a/profiles/mobile/sRGB_LUT.icc.txt
+++ b/profiles/mobile/sRGB_LUT.icc.txt
@@ -19,13 +19,13 @@
 
 rTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 gTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 bTRC : 16-bit table with 1024 entries
   ~= : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (Max error: 0.000239041) (D-gap: 0)
- ~13 : 0.305305x^3 + 0.682172x^2 + 0.0125229x (Max error: 0.00167628)
+ ~13 : 0.305305x^3 + 0.682172x^2 + 0.012523x (Max error: 0.00167628)
 Best : 2.39978, 0.947934, 0.052081, 0.0777105, 0.0449658, -1.28639e-06, 0 (D-gap: 0)
  ~13 : 0.305292x^3 + 0.682192x^2 + 0.0125157x (Max error: 0.00166641)
  XYZ : | 0.436035156 0.385116577 0.143051147 |
diff --git a/profiles/mobile/sRGB_parametric.icc.txt b/profiles/mobile/sRGB_parametric.icc.txt
index da12c62..7cd0643 100644
--- a/profiles/mobile/sRGB_parametric.icc.txt
+++ b/profiles/mobile/sRGB_parametric.icc.txt
@@ -18,13 +18,13 @@
  'gTRC' : 'para' :     32 : 520
 
 rTRC : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
 gTRC : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
 bTRC : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
 Best : 2.39999, 0.947861, 0.0521393, 0.0773926, 0.040451, 0, 0 (D-gap: 8.2748e-07) (sRGB)
- ~13 : 0.305647x^3 + 0.681704x^2 + 0.0126491x (Max error: 0.00166379)
+ ~13 : 0.305647x^3 + 0.681703x^2 + 0.0126491x (Max error: 0.00166379)
  XYZ : | 0.436035156 0.385116577 0.143051147 |
        | 0.222488403 0.716903687 0.060607910 |
        | 0.013916016 0.097061157 0.713912964 |
diff --git a/profiles/sRGB_Facebook.icc.txt b/profiles/sRGB_Facebook.icc.txt
index 8881de8..60293ac 100644
--- a/profiles/sRGB_Facebook.icc.txt
+++ b/profiles/sRGB_Facebook.icc.txt
@@ -18,15 +18,15 @@
 
 rTRC : 16-bit table with 26 entries
   ~= : 2.39737, 0.949209, 0.0506402, 0.0774395, 0.04, 0.000100383, 0 (Max error: 0.0013938) (D-gap: 0)
- ~13 : 0.307076x^3 + 0.681032x^2 + 0.011892x (Max error: 0.0015126)
+ ~13 : 0.307077x^3 + 0.681031x^2 + 0.0118921x (Max error: 0.0015126)
 gTRC : 16-bit table with 26 entries
   ~= : 2.39737, 0.949209, 0.0506402, 0.0774395, 0.04, 0.000100383, 0 (Max error: 0.0013938) (D-gap: 0)
- ~13 : 0.307076x^3 + 0.681032x^2 + 0.011892x (Max error: 0.0015126)
+ ~13 : 0.307077x^3 + 0.681031x^2 + 0.0118921x (Max error: 0.0015126)
 bTRC : 16-bit table with 26 entries
   ~= : 2.39737, 0.949209, 0.0506402, 0.0774395, 0.04, 0.000100383, 0 (Max error: 0.0013938) (D-gap: 0)
- ~13 : 0.307076x^3 + 0.681032x^2 + 0.011892x (Max error: 0.0015126)
+ ~13 : 0.307077x^3 + 0.681031x^2 + 0.0118921x (Max error: 0.0015126)
 Best : 2.39737, 0.949209, 0.0506402, 0.0774395, 0.04, 0.000100383, 0 (D-gap: 0)
- ~13 : 0.307302x^3 + 0.680677x^2 + 0.0120214x (Max error: 0.00167185)
+ ~13 : 0.307302x^3 + 0.680676x^2 + 0.0120214x (Max error: 0.00167185)
  XYZ : | 0.436065674 0.385147095 0.143066406 |
        | 0.222488403 0.716873169 0.060607910 |
        | 0.013916016 0.097076416 0.714096069 |
diff --git a/src/TF13.c b/src/TF13.c
index de8e61a..e045ecc 100644
--- a/src/TF13.c
+++ b/src/TF13.c
@@ -19,15 +19,13 @@
 
 static float eval_13(float x, const void* ctx, const float P[4]) {
     (void)ctx;
-    return P[0]*x*x*x
-         + P[1]*x*x
-         + (1 - P[0] - P[1])*x;
+    return x*(x*(x*P[0] + P[1]) + (1 - P[0] - P[1]));
 }
 static void grad_13(float x, const void* ctx, const float P[4], float dfdP[4]) {
     (void)ctx;
     (void)P;
-    dfdP[0] = x*x*x - x;
-    dfdP[1] = x*x   - x;
+    dfdP[0] = x*(x*x - 1);
+    dfdP[1] = x*(x   - 1);
 }
 
 bool skcms_ApproximateCurve13(const skcms_Curve* curve, skcms_TF13* approx, float* max_error) {