math-exercises 3.0.185 → 3.0.187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/lib/exercises/exercise.d.ts +1 -0
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/derivation/derivative/exp/index.d.ts +2 -0
  4. package/lib/exercises/math/derivation/derivative/exp/index.d.ts.map +1 -1
  5. package/lib/exercises/math/derivation/derivative/exp/index.js +2 -0
  6. package/lib/exercises/math/derivation/derivative/index.d.ts +3 -0
  7. package/lib/exercises/math/derivation/derivative/index.d.ts.map +1 -1
  8. package/lib/exercises/math/derivation/derivative/index.js +3 -0
  9. package/lib/exercises/math/derivation/derivativeNumber/index.d.ts +2 -0
  10. package/lib/exercises/math/derivation/derivativeNumber/index.d.ts.map +1 -1
  11. package/lib/exercises/math/derivation/derivativeNumber/index.js +2 -0
  12. package/lib/exercises/math/derivation/index.d.ts +1 -0
  13. package/lib/exercises/math/derivation/index.d.ts.map +1 -1
  14. package/lib/exercises/math/derivation/index.js +1 -0
  15. package/lib/exercises/math/derivation/tangent/derivativeReadingByManipulatingSecant.d.ts.map +1 -1
  16. package/lib/exercises/math/derivation/tangent/derivativeReadingByManipulatingSecant.js +0 -4
  17. package/lib/exercises/math/derivation/tangent/index.d.ts +9 -0
  18. package/lib/exercises/math/derivation/tangent/index.d.ts.map +1 -1
  19. package/lib/exercises/math/derivation/tangent/index.js +9 -0
  20. package/lib/exercises/math/derivation/variations/findAbscissaOfExtremaFromFunctionExpression.d.ts.map +1 -1
  21. package/lib/exercises/math/derivation/variations/findAbscissaOfExtremaFromFunctionExpression.js +3 -22
  22. package/lib/exercises/math/derivation/variations/index.d.ts +8 -0
  23. package/lib/exercises/math/derivation/variations/index.d.ts.map +1 -1
  24. package/lib/exercises/math/derivation/variations/index.js +8 -0
  25. package/lib/exercises/math/derivation/variations/signVarTable3dDegree.d.ts +10 -0
  26. package/lib/exercises/math/derivation/variations/signVarTable3dDegree.d.ts.map +1 -1
  27. package/lib/exercises/math/derivation/variations/signVarTable3dDegree.js +235 -231
  28. package/lib/exercises/math/functions/basics/inverseImageFunction.js +1 -1
  29. package/lib/exercises/math/functions/sign/affineSignTable.d.ts.map +1 -1
  30. package/lib/exercises/math/functions/sign/affineSignTable.js +1 -1
  31. package/lib/exercises/math/python/index.d.ts +1 -0
  32. package/lib/exercises/math/python/index.d.ts.map +1 -1
  33. package/lib/exercises/math/python/index.js +1 -0
  34. package/lib/exercises/math/python/list/index.d.ts +11 -0
  35. package/lib/exercises/math/python/list/index.d.ts.map +1 -0
  36. package/lib/exercises/math/python/list/index.js +10 -0
  37. package/lib/exercises/math/python/list/pyListAppend.d.ts +29 -0
  38. package/lib/exercises/math/python/list/pyListAppend.d.ts.map +1 -0
  39. package/lib/exercises/math/python/list/pyListAppend.js +280 -0
  40. package/lib/exercises/math/python/list/pyListCreateListByComprehension.d.ts +11 -0
  41. package/lib/exercises/math/python/list/pyListCreateListByComprehension.d.ts.map +1 -0
  42. package/lib/exercises/math/python/list/pyListCreateListByComprehension.js +231 -0
  43. package/lib/exercises/math/python/list/pyListCreateListInstructionCompletion.d.ts +9 -0
  44. package/lib/exercises/math/python/list/pyListCreateListInstructionCompletion.d.ts.map +1 -0
  45. package/lib/exercises/math/python/list/pyListCreateListInstructionCompletion.js +232 -0
  46. package/lib/exercises/math/python/list/pyListElemAtIndex.d.ts +9 -0
  47. package/lib/exercises/math/python/list/pyListElemAtIndex.d.ts.map +1 -0
  48. package/lib/exercises/math/python/list/pyListElemAtIndex.js +292 -0
  49. package/lib/exercises/math/python/list/pyListMutationMix.d.ts +29 -0
  50. package/lib/exercises/math/python/list/pyListMutationMix.d.ts.map +1 -0
  51. package/lib/exercises/math/python/list/pyListMutationMix.js +455 -0
  52. package/lib/exercises/math/python/list/pyListRemove.d.ts +29 -0
  53. package/lib/exercises/math/python/list/pyListRemove.d.ts.map +1 -0
  54. package/lib/exercises/math/python/list/pyListRemove.js +375 -0
  55. package/lib/exercises/math/python/list/pyListSetElemAtIndex.d.ts +29 -0
  56. package/lib/exercises/math/python/list/pyListSetElemAtIndex.d.ts.map +1 -0
  57. package/lib/exercises/math/python/list/pyListSetElemAtIndex.js +331 -0
  58. package/lib/exercises/math/python/list/pyListSetElemAtIndexInstructionCompletion.d.ts +9 -0
  59. package/lib/exercises/math/python/list/pyListSetElemAtIndexInstructionCompletion.d.ts.map +1 -0
  60. package/lib/exercises/math/python/list/pyListSetElemAtIndexInstructionCompletion.js +346 -0
  61. package/lib/exercises/math/python/list/pyListSetElemAtIndexWaterfall.d.ts +29 -0
  62. package/lib/exercises/math/python/list/pyListSetElemAtIndexWaterfall.d.ts.map +1 -0
  63. package/lib/exercises/math/python/list/pyListSetElemAtIndexWaterfall.js +394 -0
  64. package/lib/geogebra/geogebraConstructor.d.ts +1 -0
  65. package/lib/geogebra/geogebraConstructor.d.ts.map +1 -1
  66. package/lib/geogebra/geogebraConstructor.js +3 -0
  67. package/lib/index.d.ts +280 -0
  68. package/lib/index.d.ts.map +1 -1
  69. package/lib/math/geometry/line.js +1 -1
  70. package/lib/tree/nodes/functions/sqrtNode.d.ts +1 -1
  71. package/lib/tree/nodes/functions/sqrtNode.d.ts.map +1 -1
  72. package/lib/tree/nodes/functions/sqrtNode.js +5 -3
  73. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -922,6 +922,21 @@ declare const mathExercises: (Exercise<{
922
922
  c: number;
923
923
  d: number;
924
924
  }, Record<string, string | boolean | string[]>> | Exercise<{
925
+ coeffsF: number[];
926
+ coeffsG: number[];
927
+ }, {
928
+ typeF: string;
929
+ isRequireFactorizedAnswer: boolean;
930
+ typeExpG: string;
931
+ }> | Exercise<{
932
+ coeffsF: number[];
933
+ coeffsG: number[];
934
+ isFOverExpG: boolean;
935
+ }, {
936
+ typeF: string;
937
+ isRequireFactorizedAnswer: boolean;
938
+ typeExpG: string;
939
+ }> | Exercise<{
925
940
  a: number;
926
941
  b: number;
927
942
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -985,6 +1000,27 @@ declare const mathExercises: (Exercise<{
985
1000
  nodeUPrimeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
986
1001
  nodeVPrimeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
987
1002
  }, Record<string, string | boolean | string[]>> | Exercise<{
1003
+ nodeIdsXAsked: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1004
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1005
+ typeF: string;
1006
+ }, {
1007
+ typeF: string;
1008
+ }> | Exercise<{
1009
+ nodeIdsSlope: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1010
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1011
+ typeF: string;
1012
+ nodeIdsRoots: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
1013
+ }, {
1014
+ typeF: string;
1015
+ }> | Exercise<{
1016
+ nodeIdsSlope: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1017
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1018
+ typeF: string;
1019
+ nodeIdsRoots: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
1020
+ indexRootGiven: number;
1021
+ }, {
1022
+ typeF: string;
1023
+ }> | Exercise<{
988
1024
  coeffs: number[];
989
1025
  x: number;
990
1026
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -1018,6 +1054,18 @@ declare const mathExercises: (Exercise<{
1018
1054
  functionTypes: string[];
1019
1055
  questionType: string;
1020
1056
  }> | Exercise<{
1057
+ a: number;
1058
+ x1: number;
1059
+ x2: number;
1060
+ x3: number;
1061
+ xAsked: number;
1062
+ }, {
1063
+ notationType: string;
1064
+ }> | Exercise<{
1065
+ arrNodeIdsX: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
1066
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1067
+ initTable: string[][];
1068
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1021
1069
  abscisse: number;
1022
1070
  trinome: number[];
1023
1071
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -1043,6 +1091,53 @@ declare const mathExercises: (Exercise<{
1043
1091
  }, Record<string, string | boolean | string[]>> | Exercise<{
1044
1092
  trinomCoeffs: number[];
1045
1093
  }, Record<string, string | boolean | string[]>> | Exercise<{
1094
+ A: number[];
1095
+ B: number[];
1096
+ coeffs: number[];
1097
+ }, {
1098
+ notationType: string;
1099
+ }> | Exercise<{
1100
+ x: number;
1101
+ k: number;
1102
+ nodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
1103
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1104
+ nodeIdsSlope: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1105
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1106
+ nodeIdsAbscissa: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
1107
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1108
+ pofIds: import("./math/utils/polynomial/polynomialInterpolationUtils.js").PointOfFunctionIdentifiers[];
1109
+ cubicSplineIds: {
1110
+ chunkIds: {
1111
+ nodeIdsFCubic: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1112
+ nodeIdsXStart: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1113
+ nodeIdsXEnd: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1114
+ }[];
1115
+ };
1116
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1117
+ nodeIdsXAsked: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1118
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1119
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1120
+ nodeIdsXAsked: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1121
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1122
+ typeF: string;
1123
+ }, {
1124
+ typeF: string;
1125
+ }> | Exercise<{
1126
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1127
+ nodeIdsXAsked: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1128
+ }, {
1129
+ notationType: string;
1130
+ }> | Exercise<{
1131
+ nodeIdsSlope: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1132
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1133
+ nodeIdsAbscissa: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
1134
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1135
+ x: number;
1136
+ k: number;
1137
+ nodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
1138
+ }, {
1139
+ notationType: string;
1140
+ }> | Exercise<{
1046
1141
  a: number;
1047
1142
  c: number;
1048
1143
  coin: number;
@@ -1073,6 +1168,56 @@ declare const mathExercises: (Exercise<{
1073
1168
  b: number;
1074
1169
  c: number;
1075
1170
  }, Record<string, string | boolean | string[]>> | Exercise<{
1171
+ coeffsF: number[];
1172
+ }, {
1173
+ typeF: string;
1174
+ }> | Exercise<{
1175
+ coeffsF: number[];
1176
+ isFOverExp: boolean;
1177
+ }, {
1178
+ typeF: string;
1179
+ }> | Exercise<{
1180
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1181
+ typeF: string;
1182
+ typeRoots: string;
1183
+ }, {
1184
+ typeF: string;
1185
+ typeRoots: string;
1186
+ }> | Exercise<{
1187
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1188
+ typeF: string;
1189
+ typeRoots: string;
1190
+ }, {
1191
+ typeF: string;
1192
+ typeRoots: string;
1193
+ }> | Exercise<{
1194
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1195
+ typeF: string;
1196
+ typeRoots: string;
1197
+ }, {
1198
+ typeF: string;
1199
+ typeRoots: string;
1200
+ }> | Exercise<{
1201
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1202
+ pointIds: import("./math/geometry/point.js").PointIdentifiers[];
1203
+ nodeIdsAbscissa: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
1204
+ typeF: string;
1205
+ }, {
1206
+ typeF: string;
1207
+ }> | Exercise<{
1208
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1209
+ pointIds: import("./math/geometry/point.js").PointIdentifiers[];
1210
+ nodeIdsAbscissa: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
1211
+ typeF: string;
1212
+ }, {
1213
+ typeF: string;
1214
+ }> | Exercise<{
1215
+ a: number;
1216
+ b: number;
1217
+ c: number;
1218
+ }, {
1219
+ doNotAskImages: boolean;
1220
+ }> | Exercise<{
1076
1221
  coeffs: number[];
1077
1222
  }, Record<string, string | boolean | string[]>> | Exercise<{
1078
1223
  askConvex: boolean;
@@ -1080,6 +1225,24 @@ declare const mathExercises: (Exercise<{
1080
1225
  }, Record<string, string | boolean | string[]>> | Exercise<{
1081
1226
  quadcoeffs: number[];
1082
1227
  }, Record<string, string | boolean | string[]>> | Exercise<{
1228
+ a: number;
1229
+ b: number;
1230
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1231
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1232
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1233
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1234
+ pofIds: import("./math/utils/polynomial/polynomialInterpolationUtils.js").PointOfFunctionIdentifiers[];
1235
+ boundPHigh: number;
1236
+ typeF: string;
1237
+ }, {
1238
+ typeF: string;
1239
+ }> | Exercise<{
1240
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1241
+ nodeIdsValueFunction: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1242
+ typeF: string;
1243
+ }, {
1244
+ typeF: string;
1245
+ }> | Exercise<{
1083
1246
  isAskingX: boolean;
1084
1247
  coeffs: number[];
1085
1248
  }, {
@@ -3964,6 +4127,123 @@ declare const mathExercises: (Exercise<{
3964
4127
  }, Record<string, string | boolean | string[]>> | Exercise<{
3965
4128
  m: number;
3966
4129
  p: number;
4130
+ }, Record<string, string | boolean | string[]>> | Exercise<{
4131
+ nameList: string;
4132
+ listInitial: unknown[];
4133
+ indexAsked: number;
4134
+ }, Record<string, string | boolean | string[]>> | Exercise<{
4135
+ nameList: string;
4136
+ listInitial: unknown[];
4137
+ indexAsked: number;
4138
+ }, Record<string, string | boolean | string[]>> | Exercise<{
4139
+ length: number;
4140
+ nodeIdsElemAtIndexI: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
4141
+ rand: number;
4142
+ randFOfI: number;
4143
+ }, Record<string, string | boolean | string[]>> | Exercise<{
4144
+ nameList: string;
4145
+ listInitial: unknown[];
4146
+ arrInstruction: (({
4147
+ type: "append";
4148
+ } & {
4149
+ nameList: string;
4150
+ value: unknown;
4151
+ }) | ({
4152
+ type: "remove";
4153
+ } & {
4154
+ nameList: string;
4155
+ value: unknown;
4156
+ }) | ({
4157
+ type: "injection";
4158
+ } & {
4159
+ nameList: string;
4160
+ index: number;
4161
+ value: unknown;
4162
+ }))[];
4163
+ }, Record<string, string | boolean | string[]>> | Exercise<{
4164
+ nameList: string;
4165
+ listInitial: unknown[];
4166
+ arrInstruction: (({
4167
+ type: "append";
4168
+ } & {
4169
+ nameList: string;
4170
+ value: unknown;
4171
+ }) | ({
4172
+ type: "remove";
4173
+ } & {
4174
+ nameList: string;
4175
+ value: unknown;
4176
+ }) | ({
4177
+ type: "injection";
4178
+ } & {
4179
+ nameList: string;
4180
+ index: number;
4181
+ value: unknown;
4182
+ }))[];
4183
+ }, Record<string, string | boolean | string[]>> | Exercise<{
4184
+ nameList: string;
4185
+ listInitial: unknown[];
4186
+ arrInstruction: (({
4187
+ type: "append";
4188
+ } & {
4189
+ nameList: string;
4190
+ value: unknown;
4191
+ }) | ({
4192
+ type: "remove";
4193
+ } & {
4194
+ nameList: string;
4195
+ value: unknown;
4196
+ }) | ({
4197
+ type: "inject";
4198
+ } & {
4199
+ nameList: string;
4200
+ index: number;
4201
+ value: unknown;
4202
+ }))[];
4203
+ }, Record<string, string | boolean | string[]>> | Exercise<{
4204
+ nameList: string;
4205
+ listInitial: unknown[];
4206
+ arrInstruction: (({
4207
+ type: "append";
4208
+ } & {
4209
+ nameList: string;
4210
+ value: unknown;
4211
+ }) | ({
4212
+ type: "remove";
4213
+ } & {
4214
+ nameList: string;
4215
+ value: unknown;
4216
+ }) | ({
4217
+ type: "inject";
4218
+ } & {
4219
+ nameList: string;
4220
+ index: number;
4221
+ value: unknown;
4222
+ }))[];
4223
+ }, Record<string, string | boolean | string[]>> | Exercise<{
4224
+ nameList: string;
4225
+ listInitial: unknown[];
4226
+ arrInstruction: (({
4227
+ type: "append";
4228
+ } & {
4229
+ nameList: string;
4230
+ value: unknown;
4231
+ }) | ({
4232
+ type: "remove";
4233
+ } & {
4234
+ nameList: string;
4235
+ value: unknown;
4236
+ }) | ({
4237
+ type: "inject";
4238
+ } & {
4239
+ nameList: string;
4240
+ index: number;
4241
+ value: unknown;
4242
+ }))[];
4243
+ }, Record<string, string | boolean | string[]>> | Exercise<{
4244
+ nameList: string;
4245
+ listInitial: unknown[];
4246
+ listTarget: unknown[];
3967
4247
  }, Record<string, string | boolean | string[]>> | Exercise<{
3968
4248
  firstValue: number;
3969
4249
  rankAsked: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAE3D,OAAO,4BAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA+B,CAAC;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
@@ -69,7 +69,7 @@ export class Line {
69
69
  this.pointB = pointB;
70
70
  this.unformatedName = name ?? `${pointA.name}${pointB.name}`;
71
71
  this.name = name ?? `\\left(${pointA.name}${pointB.name}\\right)`;
72
- this.ggbName = name ?? `line_{${pointA.name}${pointB.name}}`;
72
+ this.ggbName = name ?? `line${pointA.name}${pointB.name}`;
73
73
  this.isVertical = pointA.x.equals(pointB.x);
74
74
  if (this.isVertical) {
75
75
  this.a = undefined;
@@ -25,7 +25,7 @@ export declare class SqrtNode implements FunctionNode {
25
25
  simplify(opts?: SimplifyOptions, _log?: boolean): AlgebraicNode;
26
26
  equals(node: AlgebraicNode): boolean;
27
27
  toDetailedEvaluation(vars: Record<string, AlgebraicNode>): AlgebraicNode;
28
- derivative(): AlgebraicNode;
28
+ derivative(varName?: string | undefined): AlgebraicNode;
29
29
  toSimplificationTex(): string;
30
30
  }
31
31
  //# sourceMappingURL=sqrtNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sqrtNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/functions/sqrtNode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AAK/E,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKrE,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,QAAQ,CAEjD;AAED,eAAO,MAAM,IAAI,GAAI,GAAG,aAAa,GAAG,MAAM,GAAG,MAAM,aAItD,CAAC;AAEF,qBAAa,QAAS,YAAW,YAAY;IAC3C,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;gBACP,KAAK,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,WAAW;IAOpD,aAAa;;;;;;IAMb,YAAY,IAAI,MAAM;IAMtB,KAAK,IAAI,MAAM;IAGf,mBAAmB;IAOnB,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,aAAa,EAAE;IAwBtD,cAAc,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE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E;IAG5C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAGtC,QAAQ,CAAC,IAAI,CAAC,EAAE,eAAe,EAAE,IAAI,UAAQ,GAAG,aAAa;IAyD7D,MAAM,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO;IAGpC,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;IAOxD,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa;IAIvD,mBAAmB;CAQpB"}
@@ -3,7 +3,7 @@ import { NodeIds, NodeType } from "../node.js";
3
3
  import { FunctionsIds, isFunctionNode } from "./functionNode.js";
4
4
  import { SquareRoot } from "../../../math/numbers/reals/real.js";
5
5
  import { NumberNode, isNumberNode } from "../numbers/numberNode.js";
6
- import { MultiplyNode, isMultiplyNode } from "../operators/multiplyNode.js";
6
+ import { MultiplyNode, isMultiplyNode, multiply, } from "../operators/multiplyNode.js";
7
7
  import { isInt } from "../../../utils/isInt.js";
8
8
  import { operatorComposition } from "../../../tree/utilities/operatorComposition.js";
9
9
  import { frac, isFractionNode } from "../operators/fractionNode.js";
@@ -135,8 +135,10 @@ export class SqrtNode {
135
135
  //? utile pour remplacer sqrt(2) par une approximation
136
136
  return (vars[this.toTex()] ?? new SqrtNode(this.child.toDetailedEvaluation(vars)));
137
137
  }
138
- derivative() {
139
- throw new Error("unimplemented derivative");
138
+ //(u^(1/2))' = (1/2)u'u^(-1/2)
139
+ derivative(varName) {
140
+ const nodeU = this.child;
141
+ return frac(nodeU.derivative(varName).simplify(), multiply(2, this));
140
142
  }
141
143
  toSimplificationTex() {
142
144
  const simplified = this.simplify();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "math-exercises",
3
3
  "type": "module",
4
- "version": "3.0.185",
4
+ "version": "3.0.187",
5
5
  "description": "Math exercises generator for middle school and high school",
6
6
  "main": "lib/index.js",
7
7
  "files": [