@nice2dev/ui-tools 1.0.10

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 (158) hide show
  1. package/README.md +36 -0
  2. package/dist/access-control.d.ts +726 -0
  3. package/dist/access-control.d.ts.map +1 -0
  4. package/dist/accessibility-i18n.d.ts +1017 -0
  5. package/dist/accessibility-i18n.d.ts.map +1 -0
  6. package/dist/ai-assistant.d.ts +263 -0
  7. package/dist/ai-assistant.d.ts.map +1 -0
  8. package/dist/ai-playgrounds.d.ts +842 -0
  9. package/dist/ai-playgrounds.d.ts.map +1 -0
  10. package/dist/alerting-incidents.d.ts +558 -0
  11. package/dist/alerting-incidents.d.ts.map +1 -0
  12. package/dist/api-designer.d.ts +1568 -0
  13. package/dist/api-designer.d.ts.map +1 -0
  14. package/dist/api-testing.d.ts +1146 -0
  15. package/dist/api-testing.d.ts.map +1 -0
  16. package/dist/apm-profiling.d.ts +656 -0
  17. package/dist/apm-profiling.d.ts.map +1 -0
  18. package/dist/artifacts.d.ts +421 -0
  19. package/dist/artifacts.d.ts.map +1 -0
  20. package/dist/audit-compliance.d.ts +752 -0
  21. package/dist/audit-compliance.d.ts.map +1 -0
  22. package/dist/certificates.d.ts +256 -0
  23. package/dist/certificates.d.ts.map +1 -0
  24. package/dist/chart-builder.d.ts +1404 -0
  25. package/dist/chart-builder.d.ts.map +1 -0
  26. package/dist/cloud-instances.d.ts +169 -0
  27. package/dist/cloud-instances.d.ts.map +1 -0
  28. package/dist/config-management.d.ts +350 -0
  29. package/dist/config-management.d.ts.map +1 -0
  30. package/dist/containers.d.ts +256 -0
  31. package/dist/containers.d.ts.map +1 -0
  32. package/dist/dashboard-designer.d.ts +1238 -0
  33. package/dist/dashboard-designer.d.ts.map +1 -0
  34. package/dist/data-management.d.ts +496 -0
  35. package/dist/data-management.d.ts.map +1 -0
  36. package/dist/data-pipeline.d.ts +1105 -0
  37. package/dist/data-pipeline.d.ts.map +1 -0
  38. package/dist/data-warehouse.d.ts +1097 -0
  39. package/dist/data-warehouse.d.ts.map +1 -0
  40. package/dist/dataset-management.d.ts +782 -0
  41. package/dist/dataset-management.d.ts.map +1 -0
  42. package/dist/db-adapters.d.ts +704 -0
  43. package/dist/db-adapters.d.ts.map +1 -0
  44. package/dist/db-admin.d.ts +699 -0
  45. package/dist/db-admin.d.ts.map +1 -0
  46. package/dist/db-designer.d.ts +366 -0
  47. package/dist/db-designer.d.ts.map +1 -0
  48. package/dist/debugger.d.ts +356 -0
  49. package/dist/debugger.d.ts.map +1 -0
  50. package/dist/device-management.d.ts +871 -0
  51. package/dist/device-management.d.ts.map +1 -0
  52. package/dist/distributed-tracing.d.ts +427 -0
  53. package/dist/distributed-tracing.d.ts.map +1 -0
  54. package/dist/dns-management.d.ts +215 -0
  55. package/dist/dns-management.d.ts.map +1 -0
  56. package/dist/download-manager.d.ts +271 -0
  57. package/dist/download-manager.d.ts.map +1 -0
  58. package/dist/download-torrent.d.ts +1062 -0
  59. package/dist/download-torrent.d.ts.map +1 -0
  60. package/dist/edge-computing.d.ts +720 -0
  61. package/dist/edge-computing.d.ts.map +1 -0
  62. package/dist/education.d.ts +1135 -0
  63. package/dist/education.d.ts.map +1 -0
  64. package/dist/email-template.d.ts +1141 -0
  65. package/dist/email-template.d.ts.map +1 -0
  66. package/dist/erp-enterprise.d.ts +1270 -0
  67. package/dist/erp-enterprise.d.ts.map +1 -0
  68. package/dist/form-builder.d.ts +1117 -0
  69. package/dist/form-builder.d.ts.map +1 -0
  70. package/dist/game-engine-advanced.d.ts +1049 -0
  71. package/dist/game-engine-advanced.d.ts.map +1 -0
  72. package/dist/git.d.ts +415 -0
  73. package/dist/git.d.ts.map +1 -0
  74. package/dist/hardware-integration.d.ts +966 -0
  75. package/dist/hardware-integration.d.ts.map +1 -0
  76. package/dist/iac.d.ts +318 -0
  77. package/dist/iac.d.ts.map +1 -0
  78. package/dist/icon-tools.d.ts +1023 -0
  79. package/dist/icon-tools.d.ts.map +1 -0
  80. package/dist/ide.d.ts +322 -0
  81. package/dist/ide.d.ts.map +1 -0
  82. package/dist/index.cjs +2 -0
  83. package/dist/index.cjs.map +1 -0
  84. package/dist/index.d.ts +176 -0
  85. package/dist/index.d.ts.map +1 -0
  86. package/dist/index.mjs +1887 -0
  87. package/dist/index.mjs.map +1 -0
  88. package/dist/integration-platform.d.ts +857 -0
  89. package/dist/integration-platform.d.ts.map +1 -0
  90. package/dist/kubernetes.d.ts +278 -0
  91. package/dist/kubernetes.d.ts.map +1 -0
  92. package/dist/life-management.d.ts +1132 -0
  93. package/dist/life-management.d.ts.map +1 -0
  94. package/dist/log-management.d.ts +473 -0
  95. package/dist/log-management.d.ts.map +1 -0
  96. package/dist/mathematics.d.ts +870 -0
  97. package/dist/mathematics.d.ts.map +1 -0
  98. package/dist/message-queue.d.ts +1006 -0
  99. package/dist/message-queue.d.ts.map +1 -0
  100. package/dist/metrics-dashboard.d.ts +596 -0
  101. package/dist/metrics-dashboard.d.ts.map +1 -0
  102. package/dist/mobile-components.d.ts +766 -0
  103. package/dist/mobile-components.d.ts.map +1 -0
  104. package/dist/model-deployment.d.ts +787 -0
  105. package/dist/model-deployment.d.ts.map +1 -0
  106. package/dist/model-registry.d.ts +740 -0
  107. package/dist/model-registry.d.ts.map +1 -0
  108. package/dist/model-training.d.ts +706 -0
  109. package/dist/model-training.d.ts.map +1 -0
  110. package/dist/network-config.d.ts +334 -0
  111. package/dist/network-config.d.ts.map +1 -0
  112. package/dist/network-monitoring.d.ts +291 -0
  113. package/dist/network-monitoring.d.ts.map +1 -0
  114. package/dist/pdf-tools.d.ts +1003 -0
  115. package/dist/pdf-tools.d.ts.map +1 -0
  116. package/dist/pipelines.d.ts +250 -0
  117. package/dist/pipelines.d.ts.map +1 -0
  118. package/dist/remote-desktop.d.ts +207 -0
  119. package/dist/remote-desktop.d.ts.map +1 -0
  120. package/dist/report-designer.d.ts +1153 -0
  121. package/dist/report-designer.d.ts.map +1 -0
  122. package/dist/scada-industrial.d.ts +848 -0
  123. package/dist/scada-industrial.d.ts.map +1 -0
  124. package/dist/scientific-research.d.ts +1149 -0
  125. package/dist/scientific-research.d.ts.map +1 -0
  126. package/dist/secret-management.d.ts +617 -0
  127. package/dist/secret-management.d.ts.map +1 -0
  128. package/dist/security-scanning.d.ts +714 -0
  129. package/dist/security-scanning.d.ts.map +1 -0
  130. package/dist/self-service-analytics.d.ts +1208 -0
  131. package/dist/self-service-analytics.d.ts.map +1 -0
  132. package/dist/sensor-dashboard.d.ts +845 -0
  133. package/dist/sensor-dashboard.d.ts.map +1 -0
  134. package/dist/server-management.d.ts +331 -0
  135. package/dist/server-management.d.ts.map +1 -0
  136. package/dist/smart-home.d.ts +861 -0
  137. package/dist/smart-home.d.ts.map +1 -0
  138. package/dist/spreadsheet.d.ts +1043 -0
  139. package/dist/spreadsheet.d.ts.map +1 -0
  140. package/dist/sql-editor.d.ts +402 -0
  141. package/dist/sql-editor.d.ts.map +1 -0
  142. package/dist/terminal.d.ts +245 -0
  143. package/dist/terminal.d.ts.map +1 -0
  144. package/dist/testing-qa.d.ts +1013 -0
  145. package/dist/testing-qa.d.ts.map +1 -0
  146. package/dist/torrent-client.d.ts +298 -0
  147. package/dist/torrent-client.d.ts.map +1 -0
  148. package/dist/traceless.d.ts +759 -0
  149. package/dist/traceless.d.ts.map +1 -0
  150. package/dist/virtual-machines.d.ts +199 -0
  151. package/dist/virtual-machines.d.ts.map +1 -0
  152. package/dist/visual-scripting.d.ts +381 -0
  153. package/dist/visual-scripting.d.ts.map +1 -0
  154. package/dist/word-processor.d.ts +1124 -0
  155. package/dist/word-processor.d.ts.map +1 -0
  156. package/dist/workspace.d.ts +333 -0
  157. package/dist/workspace.d.ts.map +1 -0
  158. package/package.json +62 -0
@@ -0,0 +1,870 @@
1
+ /**
2
+ * @file mathematics.ts
3
+ * @module @nice2dev/ui-tools
4
+ * @description PRO-30 — Mathematics & Advanced Visualization
5
+ *
6
+ * Types for formula editors, function plotting, geometry,
7
+ * linear algebra, statistics, and unit conversion.
8
+ */
9
+ /** Mathematical expression */
10
+ export interface MathExpression {
11
+ latex: string;
12
+ mathml?: string;
13
+ asciimath?: string;
14
+ evalResult?: number | Complex | Matrix;
15
+ }
16
+ /** Complex number */
17
+ export interface Complex {
18
+ real: number;
19
+ imaginary: number;
20
+ }
21
+ /** Point in 2D */
22
+ export interface Point2D {
23
+ x: number;
24
+ y: number;
25
+ }
26
+ /** Point in 3D */
27
+ export interface Point3D {
28
+ x: number;
29
+ y: number;
30
+ z: number;
31
+ }
32
+ /** Vector in 2D */
33
+ export interface Vector2D {
34
+ x: number;
35
+ y: number;
36
+ }
37
+ /** Vector in 3D */
38
+ export interface Vector3D {
39
+ x: number;
40
+ y: number;
41
+ z: number;
42
+ }
43
+ /** Matrix */
44
+ export interface Matrix {
45
+ rows: number;
46
+ cols: number;
47
+ data: number[][];
48
+ }
49
+ /** Interval */
50
+ export interface Interval {
51
+ min: number;
52
+ max: number;
53
+ inclusive?: {
54
+ min: boolean;
55
+ max: boolean;
56
+ };
57
+ }
58
+ /** Range for plotting */
59
+ export interface PlotRange {
60
+ x: Interval;
61
+ y: Interval;
62
+ z?: Interval;
63
+ }
64
+ /** Formula editor config */
65
+ export interface FormulaEditorConfig {
66
+ mode: FormulaEditorMode;
67
+ initialLatex?: string;
68
+ symbolPalettes?: SymbolPalette[];
69
+ templates?: FormulaTemplate[];
70
+ autoNumbering?: boolean;
71
+ crossReferences?: boolean;
72
+ outputFormats?: FormulaOutputFormat[];
73
+ }
74
+ /** Formula editor mode */
75
+ export type FormulaEditorMode = 'visual' | 'latex' | 'hybrid';
76
+ /** Symbol palette */
77
+ export interface SymbolPalette {
78
+ name: string;
79
+ category: SymbolCategory;
80
+ symbols: MathSymbol[];
81
+ }
82
+ /** Symbol category */
83
+ export type SymbolCategory = 'greek_letters' | 'operators' | 'relations' | 'arrows' | 'delimiters' | 'accents' | 'logic' | 'sets' | 'calculus' | 'linear_algebra' | 'geometry' | 'miscellaneous';
84
+ /** Math symbol */
85
+ export interface MathSymbol {
86
+ name: string;
87
+ latex: string;
88
+ unicode?: string;
89
+ description?: string;
90
+ }
91
+ /** Formula template */
92
+ export interface FormulaTemplate {
93
+ name: string;
94
+ category: FormulaTemplateCategory;
95
+ latex: string;
96
+ placeholders?: string[];
97
+ description?: string;
98
+ }
99
+ /** Formula template category */
100
+ export type FormulaTemplateCategory = 'fraction' | 'power' | 'root' | 'integral' | 'sum' | 'product' | 'limit' | 'matrix' | 'equation' | 'piecewise';
101
+ /** Formula output format */
102
+ export type FormulaOutputFormat = 'latex' | 'mathml' | 'asciimath' | 'png' | 'svg' | 'pdf';
103
+ /** Numbered equation */
104
+ export interface NumberedEquation {
105
+ id: string;
106
+ number: string;
107
+ latex: string;
108
+ label?: string;
109
+ }
110
+ /** Equation solver config */
111
+ export interface EquationSolverConfig {
112
+ equationType: EquationType;
113
+ showSteps?: boolean;
114
+ precision?: number;
115
+ complexSolutions?: boolean;
116
+ }
117
+ /** Equation type */
118
+ export type EquationType = 'linear' | 'quadratic' | 'polynomial' | 'rational' | 'exponential' | 'logarithmic' | 'trigonometric' | 'system_linear' | 'differential';
119
+ /** Equation solution */
120
+ export interface EquationSolution {
121
+ equation: string;
122
+ variable: string;
123
+ solutions: SolutionValue[];
124
+ steps?: SolutionStep[];
125
+ graphData?: FunctionPlotData;
126
+ }
127
+ /** Solution value */
128
+ export interface SolutionValue {
129
+ value: number | Complex | string;
130
+ exact?: string;
131
+ approximate?: number;
132
+ isComplex?: boolean;
133
+ }
134
+ /** Solution step */
135
+ export interface SolutionStep {
136
+ stepNumber: number;
137
+ description: string;
138
+ equation: string;
139
+ explanation?: string;
140
+ }
141
+ /** Scientific calculator config */
142
+ export interface ScientificCalculatorConfig {
143
+ mode: CalculatorMode;
144
+ angleUnit: AngleUnit;
145
+ precision: number;
146
+ scientificNotation?: boolean;
147
+ showHistory?: boolean;
148
+ memorySlots?: number;
149
+ }
150
+ /** Calculator mode */
151
+ export type CalculatorMode = 'standard' | 'scientific' | 'programmer' | 'statistics';
152
+ /** Angle unit */
153
+ export type AngleUnit = 'degrees' | 'radians' | 'gradians';
154
+ /** Calculator history entry */
155
+ export interface CalculatorHistoryEntry {
156
+ id: string;
157
+ expression: string;
158
+ result: string;
159
+ timestamp: Date;
160
+ }
161
+ /** CAS (Computer Algebra System) config */
162
+ export interface CASConfig {
163
+ backend: CASBackend;
164
+ timeout?: number;
165
+ simplifyResults?: boolean;
166
+ assumeReal?: boolean;
167
+ }
168
+ /** CAS backend */
169
+ export type CASBackend = 'sympy' | 'maxima' | 'mathjs' | 'custom';
170
+ /** CAS operation */
171
+ export type CASOperation = 'simplify' | 'expand' | 'factor' | 'solve' | 'differentiate' | 'integrate' | 'limit' | 'series' | 'substitute';
172
+ /** CAS result */
173
+ export interface CASResult {
174
+ operation: CASOperation;
175
+ input: string;
176
+ output: string;
177
+ steps?: string[];
178
+ error?: string;
179
+ }
180
+ /** Function plot 2D config */
181
+ export interface FunctionPlot2DConfig {
182
+ functions: FunctionDefinition[];
183
+ range: PlotRange;
184
+ gridVisible?: boolean;
185
+ axisLabels?: {
186
+ x: string;
187
+ y: string;
188
+ };
189
+ aspectRatio?: number;
190
+ theme?: PlotTheme;
191
+ interactivity?: PlotInteractivity;
192
+ }
193
+ /** Function definition */
194
+ export interface FunctionDefinition {
195
+ id: string;
196
+ expression: string;
197
+ variable?: string;
198
+ type: FunctionType;
199
+ color?: string;
200
+ lineStyle?: LineStyle;
201
+ lineWidth?: number;
202
+ visible?: boolean;
203
+ label?: string;
204
+ }
205
+ /** Function type */
206
+ export type FunctionType = 'explicit' | 'parametric' | 'polar' | 'implicit';
207
+ /** Line style */
208
+ export type LineStyle = 'solid' | 'dashed' | 'dotted' | 'dashdot';
209
+ /** Plot theme */
210
+ export interface PlotTheme {
211
+ backgroundColor?: string;
212
+ axisColor?: string;
213
+ gridColor?: string;
214
+ textColor?: string;
215
+ defaultColors?: string[];
216
+ }
217
+ /** Plot interactivity */
218
+ export interface PlotInteractivity {
219
+ zoom?: boolean;
220
+ pan?: boolean;
221
+ trace?: boolean;
222
+ tooltip?: boolean;
223
+ clickToAdd?: boolean;
224
+ }
225
+ /** Function plot data */
226
+ export interface FunctionPlotData {
227
+ points: Point2D[];
228
+ discontinuities?: number[];
229
+ asymptotes?: Asymptote[];
230
+ criticalPoints?: CriticalPoint[];
231
+ }
232
+ /** Asymptote */
233
+ export interface Asymptote {
234
+ type: AsymptoteType;
235
+ value: number;
236
+ equation?: string;
237
+ }
238
+ /** Asymptote type */
239
+ export type AsymptoteType = 'vertical' | 'horizontal' | 'oblique';
240
+ /** Critical point */
241
+ export interface CriticalPoint {
242
+ x: number;
243
+ y: number;
244
+ type: CriticalPointType;
245
+ }
246
+ /** Critical point type */
247
+ export type CriticalPointType = 'maximum' | 'minimum' | 'inflection' | 'root' | 'undefined';
248
+ /** Area shading */
249
+ export interface AreaShading {
250
+ function1: string;
251
+ function2?: string;
252
+ xRange: Interval;
253
+ color?: string;
254
+ opacity?: number;
255
+ }
256
+ /** Function plot 3D config */
257
+ export interface FunctionPlot3DConfig {
258
+ surfaces: Surface3DDefinition[];
259
+ range: PlotRange;
260
+ renderMode: Render3DMode;
261
+ lighting?: Lighting3D;
262
+ camera?: Camera3D;
263
+ interactivity?: Plot3DInteractivity;
264
+ }
265
+ /** Surface 3D definition */
266
+ export interface Surface3DDefinition {
267
+ id: string;
268
+ expression: string;
269
+ type: Surface3DType;
270
+ colorMap?: ColorMap;
271
+ opacity?: number;
272
+ wireframe?: boolean;
273
+ resolution?: number;
274
+ }
275
+ /** Surface 3D type */
276
+ export type Surface3DType = 'explicit' | 'parametric' | 'implicit';
277
+ /** Render 3D mode */
278
+ export type Render3DMode = 'surface' | 'wireframe' | 'points' | 'contour';
279
+ /** Color map */
280
+ export type ColorMap = 'viridis' | 'plasma' | 'inferno' | 'magma' | 'rainbow' | 'jet' | 'grayscale' | 'coolwarm';
281
+ /** 3D lighting */
282
+ export interface Lighting3D {
283
+ ambient: number;
284
+ diffuse: number;
285
+ specular: number;
286
+ lightPosition: Point3D;
287
+ }
288
+ /** 3D camera */
289
+ export interface Camera3D {
290
+ position: Point3D;
291
+ target: Point3D;
292
+ up: Vector3D;
293
+ fov: number;
294
+ }
295
+ /** Plot 3D interactivity */
296
+ export interface Plot3DInteractivity {
297
+ rotate?: boolean;
298
+ zoom?: boolean;
299
+ pan?: boolean;
300
+ autoRotate?: boolean;
301
+ rotateSpeed?: number;
302
+ }
303
+ /** Vector field config */
304
+ export interface VectorFieldConfig {
305
+ expression: VectorFieldExpression;
306
+ range: PlotRange;
307
+ density: number;
308
+ arrowScale?: number;
309
+ colorByMagnitude?: boolean;
310
+ colorMap?: ColorMap;
311
+ showStreamlines?: boolean;
312
+ streamlineCount?: number;
313
+ }
314
+ /** Vector field expression */
315
+ export interface VectorFieldExpression {
316
+ u: string;
317
+ v: string;
318
+ w?: string;
319
+ }
320
+ /** Complex plot config */
321
+ export interface ComplexPlotConfig {
322
+ function: string;
323
+ range: PlotRange;
324
+ plotType: ComplexPlotType;
325
+ resolution?: number;
326
+ contourLevels?: number;
327
+ }
328
+ /** Complex plot type */
329
+ export type ComplexPlotType = 'domain_coloring' | 'modulus' | 'argument' | 'real_part' | 'imaginary_part' | 'riemann_surface';
330
+ /** Geometry canvas config */
331
+ export interface GeometryCanvasConfig {
332
+ width: number;
333
+ height: number;
334
+ coordinateSystem: CoordinateSystem;
335
+ gridVisible?: boolean;
336
+ snapToGrid?: boolean;
337
+ snapToPoints?: boolean;
338
+ tools?: GeometryTool[];
339
+ theme?: GeometryTheme;
340
+ }
341
+ /** Coordinate system */
342
+ export interface CoordinateSystem {
343
+ origin: Point2D;
344
+ unitLength: number;
345
+ xRange: Interval;
346
+ yRange: Interval;
347
+ }
348
+ /** Geometry tool */
349
+ export type GeometryTool = 'select' | 'point' | 'line' | 'ray' | 'segment' | 'circle' | 'arc' | 'ellipse' | 'polygon' | 'angle' | 'perpendicular' | 'parallel' | 'bisector' | 'midpoint' | 'compass' | 'measure' | 'label' | 'trace' | 'locus';
350
+ /** Geometry theme */
351
+ export interface GeometryTheme {
352
+ backgroundColor?: string;
353
+ gridColor?: string;
354
+ axisColor?: string;
355
+ defaultPointColor?: string;
356
+ defaultLineColor?: string;
357
+ defaultFillColor?: string;
358
+ selectedColor?: string;
359
+ constructionColor?: string;
360
+ }
361
+ /** Geometry object */
362
+ export interface GeometryObject {
363
+ id: string;
364
+ type: GeometryObjectType;
365
+ label?: string;
366
+ visible?: boolean;
367
+ style?: GeometryStyle;
368
+ dependencies?: string[];
369
+ definition?: GeometryDefinition;
370
+ }
371
+ /** Geometry object type */
372
+ export type GeometryObjectType = 'point' | 'line' | 'ray' | 'segment' | 'circle' | 'arc' | 'ellipse' | 'polygon' | 'angle' | 'text' | 'measurement';
373
+ /** Geometry style */
374
+ export interface GeometryStyle {
375
+ strokeColor?: string;
376
+ strokeWidth?: number;
377
+ strokeStyle?: LineStyle;
378
+ fillColor?: string;
379
+ fillOpacity?: number;
380
+ pointSize?: number;
381
+ fontSize?: number;
382
+ }
383
+ /** Geometry definition - union type for different objects */
384
+ export type GeometryDefinition = PointDefinition | LineDefinition | CircleDefinition | PolygonDefinition | AngleDefinition;
385
+ /** Point definition */
386
+ export interface PointDefinition {
387
+ type: 'point';
388
+ x: number;
389
+ y: number;
390
+ constraint?: PointConstraint;
391
+ }
392
+ /** Point constraint */
393
+ export type PointConstraint = {
394
+ type: 'free';
395
+ } | {
396
+ type: 'on_line';
397
+ lineId: string;
398
+ } | {
399
+ type: 'on_circle';
400
+ circleId: string;
401
+ } | {
402
+ type: 'intersection';
403
+ object1Id: string;
404
+ object2Id: string;
405
+ } | {
406
+ type: 'midpoint';
407
+ point1Id: string;
408
+ point2Id: string;
409
+ };
410
+ /** Line definition */
411
+ export interface LineDefinition {
412
+ type: 'line' | 'ray' | 'segment';
413
+ point1: Point2D | string;
414
+ point2: Point2D | string;
415
+ }
416
+ /** Circle definition */
417
+ export interface CircleDefinition {
418
+ type: 'circle';
419
+ center: Point2D | string;
420
+ radius?: number;
421
+ radiusPoint?: string;
422
+ }
423
+ /** Polygon definition */
424
+ export interface PolygonDefinition {
425
+ type: 'polygon';
426
+ vertices: (Point2D | string)[];
427
+ }
428
+ /** Angle definition */
429
+ export interface AngleDefinition {
430
+ type: 'angle';
431
+ point1: string;
432
+ vertex: string;
433
+ point2: string;
434
+ }
435
+ /** Geometry transformation */
436
+ export interface GeometryTransformation {
437
+ type: TransformationType;
438
+ parameters: TransformationParameters;
439
+ }
440
+ /** Transformation type */
441
+ export type TransformationType = 'translate' | 'rotate' | 'reflect' | 'scale' | 'shear';
442
+ /** Transformation parameters */
443
+ export type TransformationParameters = {
444
+ type: 'translate';
445
+ vector: Vector2D;
446
+ } | {
447
+ type: 'rotate';
448
+ center: Point2D;
449
+ angle: number;
450
+ } | {
451
+ type: 'reflect';
452
+ line: LineDefinition;
453
+ } | {
454
+ type: 'scale';
455
+ center: Point2D;
456
+ factor: number;
457
+ } | {
458
+ type: 'shear';
459
+ axis: 'x' | 'y';
460
+ factor: number;
461
+ };
462
+ /** Triangle calculation input */
463
+ export interface TriangleInput {
464
+ a?: number;
465
+ b?: number;
466
+ c?: number;
467
+ A?: number;
468
+ B?: number;
469
+ C?: number;
470
+ }
471
+ /** Triangle calculation result */
472
+ export interface TriangleResult {
473
+ sides: {
474
+ a: number;
475
+ b: number;
476
+ c: number;
477
+ };
478
+ angles: {
479
+ A: number;
480
+ B: number;
481
+ C: number;
482
+ };
483
+ area: number;
484
+ perimeter: number;
485
+ inradius: number;
486
+ circumradius: number;
487
+ centroid: Point2D;
488
+ orthocenter: Point2D;
489
+ incenter: Point2D;
490
+ circumcenter: Point2D;
491
+ vertices: {
492
+ A: Point2D;
493
+ B: Point2D;
494
+ C: Point2D;
495
+ };
496
+ type: TriangleType;
497
+ }
498
+ /** Triangle type */
499
+ export type TriangleType = 'equilateral' | 'isosceles' | 'scalene' | 'right' | 'acute' | 'obtuse';
500
+ /** Line equation */
501
+ export interface LineEquation {
502
+ slope?: number;
503
+ yIntercept?: number;
504
+ xIntercept?: number;
505
+ general?: {
506
+ a: number;
507
+ b: number;
508
+ c: number;
509
+ };
510
+ parametric?: {
511
+ x0: number;
512
+ y0: number;
513
+ dx: number;
514
+ dy: number;
515
+ };
516
+ }
517
+ /** Circle equation */
518
+ export interface CircleEquation {
519
+ center: Point2D;
520
+ radius: number;
521
+ general?: {
522
+ a: number;
523
+ b: number;
524
+ c: number;
525
+ };
526
+ }
527
+ /** Matrix editor config */
528
+ export interface MatrixEditorConfig {
529
+ rows: number;
530
+ cols: number;
531
+ allowResize?: boolean;
532
+ maxRows?: number;
533
+ maxCols?: number;
534
+ showRowHeaders?: boolean;
535
+ showColHeaders?: boolean;
536
+ cellFormat?: MatrixCellFormat;
537
+ }
538
+ /** Matrix cell format */
539
+ export type MatrixCellFormat = 'decimal' | 'fraction' | 'scientific' | 'integer';
540
+ /** Matrix calculator operation */
541
+ export type MatrixOperation = 'add' | 'subtract' | 'multiply' | 'scalar_multiply' | 'transpose' | 'inverse' | 'determinant' | 'rank' | 'trace' | 'power' | 'lu_decomposition' | 'qr_decomposition' | 'svd' | 'eigendecomposition' | 'row_reduce';
542
+ /** Matrix operation result */
543
+ export interface MatrixOperationResult {
544
+ operation: MatrixOperation;
545
+ inputs: Matrix[];
546
+ result: Matrix | number;
547
+ steps?: MatrixStep[];
548
+ error?: string;
549
+ }
550
+ /** Matrix step */
551
+ export interface MatrixStep {
552
+ stepNumber: number;
553
+ description: string;
554
+ matrix: Matrix;
555
+ operation?: string;
556
+ rowOperations?: RowOperation[];
557
+ }
558
+ /** Row operation */
559
+ export interface RowOperation {
560
+ type: RowOperationType;
561
+ row1: number;
562
+ row2?: number;
563
+ scalar?: number;
564
+ }
565
+ /** Row operation type */
566
+ export type RowOperationType = 'swap' | 'scale' | 'add_scaled';
567
+ /** Eigenvalue result */
568
+ export interface EigenvalueResult {
569
+ eigenvalues: (number | Complex)[];
570
+ eigenvectors: Matrix[];
571
+ algebraicMultiplicities?: number[];
572
+ geometricMultiplicities?: number[];
573
+ }
574
+ /** LU decomposition result */
575
+ export interface LUDecompositionResult {
576
+ L: Matrix;
577
+ U: Matrix;
578
+ P?: Matrix;
579
+ }
580
+ /** QR decomposition result */
581
+ export interface QRDecompositionResult {
582
+ Q: Matrix;
583
+ R: Matrix;
584
+ }
585
+ /** SVD result */
586
+ export interface SVDResult {
587
+ U: Matrix;
588
+ S: number[];
589
+ V: Matrix;
590
+ }
591
+ /** Linear transformation demo config */
592
+ export interface LinearTransformationDemoConfig {
593
+ matrix: Matrix;
594
+ showGrid?: boolean;
595
+ showUnitSquare?: boolean;
596
+ showUnitCircle?: boolean;
597
+ animationDuration?: number;
598
+ eigenVectorsVisible?: boolean;
599
+ }
600
+ /** Transformation visualization */
601
+ export interface TransformationVisualization {
602
+ originalPoints: Point2D[];
603
+ transformedPoints: Point2D[];
604
+ eigenvalues?: (number | Complex)[];
605
+ eigenvectors?: Vector2D[];
606
+ }
607
+ /** Distribution type */
608
+ export type DistributionType = 'normal' | 'binomial' | 'poisson' | 'exponential' | 'uniform' | 'chi_squared' | 't_distribution' | 'f_distribution' | 'beta' | 'gamma' | 'geometric' | 'negative_binomial' | 'hypergeometric';
609
+ /** Distribution config */
610
+ export interface DistributionConfig {
611
+ type: DistributionType;
612
+ parameters: DistributionParameters;
613
+ }
614
+ /** Distribution parameters */
615
+ export type DistributionParameters = {
616
+ type: 'normal';
617
+ mean: number;
618
+ standardDeviation: number;
619
+ } | {
620
+ type: 'binomial';
621
+ n: number;
622
+ p: number;
623
+ } | {
624
+ type: 'poisson';
625
+ lambda: number;
626
+ } | {
627
+ type: 'exponential';
628
+ lambda: number;
629
+ } | {
630
+ type: 'uniform';
631
+ min: number;
632
+ max: number;
633
+ } | {
634
+ type: 'chi_squared';
635
+ degreesOfFreedom: number;
636
+ } | {
637
+ type: 't_distribution';
638
+ degreesOfFreedom: number;
639
+ } | {
640
+ type: 'f_distribution';
641
+ df1: number;
642
+ df2: number;
643
+ } | {
644
+ type: 'beta';
645
+ alpha: number;
646
+ beta: number;
647
+ } | {
648
+ type: 'gamma';
649
+ shape: number;
650
+ rate: number;
651
+ } | {
652
+ type: 'geometric';
653
+ p: number;
654
+ } | {
655
+ type: 'negative_binomial';
656
+ r: number;
657
+ p: number;
658
+ } | {
659
+ type: 'hypergeometric';
660
+ N: number;
661
+ K: number;
662
+ n: number;
663
+ };
664
+ /** Distribution plot config */
665
+ export interface DistributionPlotConfig {
666
+ distributions: DistributionConfig[];
667
+ plotType: 'pdf' | 'cdf' | 'both';
668
+ xRange?: Interval;
669
+ showMean?: boolean;
670
+ showStdDev?: boolean;
671
+ showPercentiles?: number[];
672
+ areaShading?: ProbabilityAreaShading[];
673
+ compareMode?: boolean;
674
+ }
675
+ /** Probability area shading */
676
+ export interface ProbabilityAreaShading {
677
+ distributionIndex: number;
678
+ lowerBound?: number;
679
+ upperBound?: number;
680
+ color?: string;
681
+ label?: string;
682
+ }
683
+ /** Probability calculation */
684
+ export interface ProbabilityCalculation {
685
+ type: ProbabilityCalculationType;
686
+ input: ProbabilityInput;
687
+ result: number;
688
+ explanation?: string;
689
+ }
690
+ /** Probability calculation type */
691
+ export type ProbabilityCalculationType = 'combinations' | 'permutations' | 'factorial' | 'bayes' | 'conditional' | 'expected_value' | 'variance';
692
+ /** Probability input */
693
+ export type ProbabilityInput = {
694
+ type: 'combinations';
695
+ n: number;
696
+ r: number;
697
+ } | {
698
+ type: 'permutations';
699
+ n: number;
700
+ r: number;
701
+ } | {
702
+ type: 'factorial';
703
+ n: number;
704
+ } | {
705
+ type: 'bayes';
706
+ priorA: number;
707
+ conditionalBA: number;
708
+ priorNotA: number;
709
+ conditionalBNotA: number;
710
+ } | {
711
+ type: 'expected_value';
712
+ values: number[];
713
+ probabilities: number[];
714
+ } | {
715
+ type: 'variance';
716
+ values: number[];
717
+ probabilities: number[];
718
+ };
719
+ /** Confidence interval config */
720
+ export interface ConfidenceIntervalConfig {
721
+ type: ConfidenceIntervalType;
722
+ confidenceLevel: number;
723
+ sampleData?: number[];
724
+ sampleMean?: number;
725
+ sampleStdDev?: number;
726
+ sampleSize?: number;
727
+ sampleProportion?: number;
728
+ populationStdDev?: number;
729
+ }
730
+ /** Confidence interval type */
731
+ export type ConfidenceIntervalType = 'mean_known_sigma' | 'mean_unknown_sigma' | 'proportion' | 'variance';
732
+ /** Confidence interval result */
733
+ export interface ConfidenceIntervalResult {
734
+ estimate: number;
735
+ marginOfError: number;
736
+ lowerBound: number;
737
+ upperBound: number;
738
+ standardError: number;
739
+ criticalValue: number;
740
+ }
741
+ /** Sample size calculation */
742
+ export interface SampleSizeCalculation {
743
+ type: 'mean' | 'proportion';
744
+ confidenceLevel: number;
745
+ marginOfError: number;
746
+ stdDev?: number;
747
+ proportion?: number;
748
+ result: number;
749
+ }
750
+ /** Hypothesis test config */
751
+ export interface HypothesisTestConfig {
752
+ testType: HypothesisTestType;
753
+ alternativeHypothesis: AlternativeHypothesis;
754
+ significanceLevel: number;
755
+ sampleData?: number[];
756
+ sampleData2?: number[];
757
+ parameters?: HypothesisTestParameters;
758
+ }
759
+ /** Hypothesis test type */
760
+ export type HypothesisTestType = 'z_test_one_sample' | 'z_test_two_sample' | 't_test_one_sample' | 't_test_two_sample' | 't_test_paired' | 'proportion_one_sample' | 'proportion_two_sample' | 'chi_squared_goodness_of_fit' | 'chi_squared_independence' | 'anova_one_way' | 'f_test';
761
+ /** Alternative hypothesis */
762
+ export type AlternativeHypothesis = 'two_tailed' | 'left_tailed' | 'right_tailed';
763
+ /** Hypothesis test parameters */
764
+ export interface HypothesisTestParameters {
765
+ nullValue?: number;
766
+ populationStdDev?: number;
767
+ pooledVariance?: boolean;
768
+ expectedFrequencies?: number[];
769
+ observedFrequencies?: number[] | number[][];
770
+ }
771
+ /** Hypothesis test result */
772
+ export interface HypothesisTestResult {
773
+ testStatistic: number;
774
+ pValue: number;
775
+ criticalValue: number;
776
+ degreesOfFreedom?: number;
777
+ rejectNull: boolean;
778
+ confidenceInterval?: ConfidenceIntervalResult;
779
+ conclusion: string;
780
+ interpretation: string;
781
+ }
782
+ /** Unit converter config */
783
+ export interface UnitConverterConfig {
784
+ categories: UnitCategory[];
785
+ favorites?: string[];
786
+ customUnits?: CustomUnit[];
787
+ liveCurrencyRates?: boolean;
788
+ currencyApiKey?: string;
789
+ }
790
+ /** Unit category */
791
+ export type UnitCategory = 'length' | 'mass' | 'volume' | 'area' | 'temperature' | 'speed' | 'time' | 'force' | 'energy' | 'power' | 'pressure' | 'frequency' | 'data' | 'angle' | 'currency';
792
+ /** Unit definition */
793
+ export interface UnitDefinition {
794
+ id: string;
795
+ name: string;
796
+ symbol: string;
797
+ category: UnitCategory;
798
+ siBase?: boolean;
799
+ toSI: number | ((value: number) => number);
800
+ fromSI: number | ((value: number) => number);
801
+ }
802
+ /** Custom unit */
803
+ export interface CustomUnit {
804
+ id: string;
805
+ name: string;
806
+ symbol: string;
807
+ category: UnitCategory;
808
+ baseUnit: string;
809
+ conversionFactor: number;
810
+ }
811
+ /** Unit conversion */
812
+ export interface UnitConversion {
813
+ value: number;
814
+ fromUnit: string;
815
+ toUnit: string;
816
+ result: number;
817
+ formula?: string;
818
+ }
819
+ /** Dimension analysis */
820
+ export interface DimensionAnalysis {
821
+ expression: string;
822
+ dimensions: DimensionVector;
823
+ isValid: boolean;
824
+ simplifiedUnit?: string;
825
+ }
826
+ /** Dimension vector (M, L, T, I, Θ, N, J) */
827
+ export interface DimensionVector {
828
+ mass: number;
829
+ length: number;
830
+ time: number;
831
+ current: number;
832
+ temperature: number;
833
+ amount: number;
834
+ luminosity: number;
835
+ }
836
+ /** Physical constant */
837
+ export interface PhysicalConstant {
838
+ id: string;
839
+ name: string;
840
+ symbol: string;
841
+ value: number;
842
+ unit: string;
843
+ uncertainty?: number;
844
+ category: ConstantCategory;
845
+ description?: string;
846
+ wikiUrl?: string;
847
+ }
848
+ /** Constant category */
849
+ export type ConstantCategory = 'mathematical' | 'fundamental' | 'electromagnetic' | 'atomic' | 'physico_chemical' | 'astronomical' | 'thermodynamic';
850
+ /** Mathematical constant */
851
+ export interface MathematicalConstant {
852
+ id: string;
853
+ name: string;
854
+ symbol: string;
855
+ value: number;
856
+ latex?: string;
857
+ digits?: string;
858
+ properties?: string[];
859
+ description?: string;
860
+ }
861
+ /** Constants reference config */
862
+ export interface ConstantsReferenceConfig {
863
+ categories?: ConstantCategory[];
864
+ searchEnabled?: boolean;
865
+ copyFormat?: ConstantCopyFormat;
866
+ precision?: number;
867
+ }
868
+ /** Constant copy format */
869
+ export type ConstantCopyFormat = 'value' | 'symbol' | 'latex' | 'name_value';
870
+ //# sourceMappingURL=mathematics.d.ts.map