@atmaticai/agent-tools-core 1.0.0 → 1.0.2
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.
- package/dist/index-BKeYao0B.d.mts +320 -0
- package/dist/index-BKeYao0B.d.ts +320 -0
- package/dist/index-BZDcrPs-.d.mts +316 -0
- package/dist/index-BZDcrPs-.d.ts +316 -0
- package/dist/{index-RVqNunxE.d.mts → index-Hw4godS8.d.mts} +25 -2
- package/dist/{index-RVqNunxE.d.ts → index-Hw4godS8.d.ts} +25 -2
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1161 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1160 -1
- package/dist/index.mjs.map +1 -1
- package/dist/pdf/index.d.mts +1 -1
- package/dist/pdf/index.d.ts +1 -1
- package/dist/pdf/index.js +82 -0
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf/index.mjs +81 -1
- package/dist/pdf/index.mjs.map +1 -1
- package/dist/physics/index.d.mts +1 -0
- package/dist/physics/index.d.ts +1 -0
- package/dist/physics/index.js +467 -0
- package/dist/physics/index.js.map +1 -0
- package/dist/physics/index.mjs +435 -0
- package/dist/physics/index.mjs.map +1 -0
- package/dist/settings/index.d.mts +1 -1
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.js +6 -2
- package/dist/settings/index.js.map +1 -1
- package/dist/settings/index.mjs +6 -2
- package/dist/settings/index.mjs.map +1 -1
- package/dist/structural/index.d.mts +1 -0
- package/dist/structural/index.d.ts +1 -0
- package/dist/structural/index.js +608 -0
- package/dist/structural/index.js.map +1 -0
- package/dist/structural/index.mjs +588 -0
- package/dist/structural/index.mjs.map +1 -0
- package/package.json +12 -2
- package/README.md +0 -742
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
interface PhysicalConstant {
|
|
2
|
+
name: string;
|
|
3
|
+
symbol: string;
|
|
4
|
+
value: number;
|
|
5
|
+
unit: string;
|
|
6
|
+
category: string;
|
|
7
|
+
}
|
|
8
|
+
interface KinematicsResult {
|
|
9
|
+
displacement: number;
|
|
10
|
+
initialVelocity: number;
|
|
11
|
+
finalVelocity: number;
|
|
12
|
+
acceleration: number;
|
|
13
|
+
time: number;
|
|
14
|
+
}
|
|
15
|
+
interface ProjectileResult {
|
|
16
|
+
range: number;
|
|
17
|
+
maxHeight: number;
|
|
18
|
+
flightTime: number;
|
|
19
|
+
initialVelocity: number;
|
|
20
|
+
angle: number;
|
|
21
|
+
velocityAtPeak: number;
|
|
22
|
+
}
|
|
23
|
+
interface ForceResult {
|
|
24
|
+
force: number;
|
|
25
|
+
mass: number;
|
|
26
|
+
acceleration: number;
|
|
27
|
+
unit: string;
|
|
28
|
+
}
|
|
29
|
+
interface EnergyResult {
|
|
30
|
+
kineticEnergy: number;
|
|
31
|
+
potentialEnergy: number;
|
|
32
|
+
totalEnergy: number;
|
|
33
|
+
unit: string;
|
|
34
|
+
}
|
|
35
|
+
interface GravitationalForceResult {
|
|
36
|
+
force: number;
|
|
37
|
+
mass1: number;
|
|
38
|
+
mass2: number;
|
|
39
|
+
distance: number;
|
|
40
|
+
unit: string;
|
|
41
|
+
}
|
|
42
|
+
interface MomentumResult {
|
|
43
|
+
momentum: number;
|
|
44
|
+
mass: number;
|
|
45
|
+
velocity: number;
|
|
46
|
+
unit: string;
|
|
47
|
+
}
|
|
48
|
+
interface OrbitalVelocityResult {
|
|
49
|
+
orbitalVelocity: number;
|
|
50
|
+
escapeVelocity: number;
|
|
51
|
+
mass: number;
|
|
52
|
+
radius: number;
|
|
53
|
+
unit: string;
|
|
54
|
+
}
|
|
55
|
+
interface OhmsLawResult {
|
|
56
|
+
voltage: number;
|
|
57
|
+
current: number;
|
|
58
|
+
resistance: number;
|
|
59
|
+
power: number;
|
|
60
|
+
}
|
|
61
|
+
interface ResistorResult {
|
|
62
|
+
configuration: 'series' | 'parallel';
|
|
63
|
+
resistors: number[];
|
|
64
|
+
totalResistance: number;
|
|
65
|
+
unit: string;
|
|
66
|
+
}
|
|
67
|
+
interface CoulombResult {
|
|
68
|
+
force: number;
|
|
69
|
+
charge1: number;
|
|
70
|
+
charge2: number;
|
|
71
|
+
distance: number;
|
|
72
|
+
isAttractive: boolean;
|
|
73
|
+
unit: string;
|
|
74
|
+
}
|
|
75
|
+
interface CapacitorResult {
|
|
76
|
+
configuration: 'series' | 'parallel';
|
|
77
|
+
capacitors: number[];
|
|
78
|
+
totalCapacitance: number;
|
|
79
|
+
unit: string;
|
|
80
|
+
}
|
|
81
|
+
interface RCCircuitResult {
|
|
82
|
+
resistance: number;
|
|
83
|
+
capacitance: number;
|
|
84
|
+
timeConstant: number;
|
|
85
|
+
halfLife: number;
|
|
86
|
+
unit: string;
|
|
87
|
+
}
|
|
88
|
+
interface WaveResult {
|
|
89
|
+
frequency: number;
|
|
90
|
+
wavelength: number;
|
|
91
|
+
speed: number;
|
|
92
|
+
period: number;
|
|
93
|
+
}
|
|
94
|
+
interface DopplerResult {
|
|
95
|
+
observedFrequency: number;
|
|
96
|
+
sourceFrequency: number;
|
|
97
|
+
sourceVelocity: number;
|
|
98
|
+
observerVelocity: number;
|
|
99
|
+
mediumSpeed: number;
|
|
100
|
+
approaching: boolean;
|
|
101
|
+
}
|
|
102
|
+
interface SnellResult {
|
|
103
|
+
n1: number;
|
|
104
|
+
n2: number;
|
|
105
|
+
angle1: number;
|
|
106
|
+
angle2: number;
|
|
107
|
+
totalInternalReflection: boolean;
|
|
108
|
+
criticalAngle: number | null;
|
|
109
|
+
}
|
|
110
|
+
interface LensResult {
|
|
111
|
+
focalLength: number;
|
|
112
|
+
objectDistance: number;
|
|
113
|
+
imageDistance: number;
|
|
114
|
+
magnification: number;
|
|
115
|
+
imageType: 'real' | 'virtual';
|
|
116
|
+
}
|
|
117
|
+
interface DecibelResult {
|
|
118
|
+
intensity1: number;
|
|
119
|
+
intensity2: number;
|
|
120
|
+
decibels: number;
|
|
121
|
+
}
|
|
122
|
+
interface IdealGasResult {
|
|
123
|
+
pressure: number;
|
|
124
|
+
volume: number;
|
|
125
|
+
moles: number;
|
|
126
|
+
temperature: number;
|
|
127
|
+
unit: string;
|
|
128
|
+
}
|
|
129
|
+
interface HeatTransferResult {
|
|
130
|
+
heat: number;
|
|
131
|
+
mass: number;
|
|
132
|
+
specificHeat: number;
|
|
133
|
+
temperatureChange: number;
|
|
134
|
+
unit: string;
|
|
135
|
+
}
|
|
136
|
+
interface ThermalExpansionResult {
|
|
137
|
+
originalLength: number;
|
|
138
|
+
coefficient: number;
|
|
139
|
+
temperatureChange: number;
|
|
140
|
+
expansion: number;
|
|
141
|
+
finalLength: number;
|
|
142
|
+
}
|
|
143
|
+
interface CarnotResult {
|
|
144
|
+
hotTemperature: number;
|
|
145
|
+
coldTemperature: number;
|
|
146
|
+
efficiency: number;
|
|
147
|
+
efficiencyPercent: string;
|
|
148
|
+
}
|
|
149
|
+
interface LorentzResult {
|
|
150
|
+
velocity: number;
|
|
151
|
+
speedOfLight: number;
|
|
152
|
+
beta: number;
|
|
153
|
+
gamma: number;
|
|
154
|
+
}
|
|
155
|
+
interface TimeDilationResult {
|
|
156
|
+
properTime: number;
|
|
157
|
+
dilatedTime: number;
|
|
158
|
+
velocity: number;
|
|
159
|
+
gamma: number;
|
|
160
|
+
}
|
|
161
|
+
interface LengthContractionResult {
|
|
162
|
+
properLength: number;
|
|
163
|
+
contractedLength: number;
|
|
164
|
+
velocity: number;
|
|
165
|
+
gamma: number;
|
|
166
|
+
}
|
|
167
|
+
interface MassEnergyResult {
|
|
168
|
+
mass: number;
|
|
169
|
+
energy: number;
|
|
170
|
+
unit: string;
|
|
171
|
+
}
|
|
172
|
+
type PhysicsUnitCategory = 'force' | 'energy' | 'power' | 'pressure' | 'speed';
|
|
173
|
+
interface PhysicsUnitResult {
|
|
174
|
+
value: number;
|
|
175
|
+
from: string;
|
|
176
|
+
to: string;
|
|
177
|
+
result: number;
|
|
178
|
+
category: PhysicsUnitCategory;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare function getConstant(key: string): PhysicalConstant;
|
|
182
|
+
declare function listConstants(category?: string): PhysicalConstant[];
|
|
183
|
+
|
|
184
|
+
declare function solveKinematics(params: {
|
|
185
|
+
displacement?: number;
|
|
186
|
+
initialVelocity?: number;
|
|
187
|
+
finalVelocity?: number;
|
|
188
|
+
acceleration?: number;
|
|
189
|
+
time?: number;
|
|
190
|
+
}): KinematicsResult;
|
|
191
|
+
declare function projectileMotion(initialVelocity: number, angleDegrees: number, gravity?: number): ProjectileResult;
|
|
192
|
+
declare function freeFall(height: number, gravity?: number): {
|
|
193
|
+
height: number;
|
|
194
|
+
time: number;
|
|
195
|
+
finalVelocity: number;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
declare function calculateForce(mass: number, acceleration: number): ForceResult;
|
|
199
|
+
declare function calculateEnergy(mass: number, velocity: number, height?: number, gravity?: number): EnergyResult;
|
|
200
|
+
declare function gravitationalForce(mass1: number, mass2: number, distance: number): GravitationalForceResult;
|
|
201
|
+
declare function calculateMomentum(mass: number, velocity: number): MomentumResult;
|
|
202
|
+
declare function orbitalMechanics(mass: number, radius: number): OrbitalVelocityResult;
|
|
203
|
+
declare function calculateWork(force: number, distance: number, angleDegrees?: number): {
|
|
204
|
+
work: number;
|
|
205
|
+
force: number;
|
|
206
|
+
distance: number;
|
|
207
|
+
angle: number;
|
|
208
|
+
unit: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
declare function ohmsLaw(params: {
|
|
212
|
+
voltage?: number;
|
|
213
|
+
current?: number;
|
|
214
|
+
resistance?: number;
|
|
215
|
+
}): OhmsLawResult;
|
|
216
|
+
declare function resistors(values: number[], configuration: 'series' | 'parallel'): ResistorResult;
|
|
217
|
+
declare function coulombsLaw(charge1: number, charge2: number, distance: number): CoulombResult;
|
|
218
|
+
declare function capacitors(values: number[], configuration: 'series' | 'parallel'): CapacitorResult;
|
|
219
|
+
declare function rcCircuit(resistance: number, capacitance: number): RCCircuitResult;
|
|
220
|
+
|
|
221
|
+
declare function waveEquation(params: {
|
|
222
|
+
frequency?: number;
|
|
223
|
+
wavelength?: number;
|
|
224
|
+
speed?: number;
|
|
225
|
+
}): WaveResult;
|
|
226
|
+
declare function dopplerEffect(sourceFrequency: number, sourceVelocity: number, observerVelocity: number, mediumSpeed?: number, approaching?: boolean): DopplerResult;
|
|
227
|
+
declare function snellsLaw(n1: number, n2: number, angle1Degrees: number): SnellResult;
|
|
228
|
+
declare function thinLens(params: {
|
|
229
|
+
focalLength?: number;
|
|
230
|
+
objectDistance?: number;
|
|
231
|
+
imageDistance?: number;
|
|
232
|
+
}): LensResult;
|
|
233
|
+
declare function decibelConversion(intensity1: number, intensity2: number): DecibelResult;
|
|
234
|
+
|
|
235
|
+
declare function idealGasLaw(params: {
|
|
236
|
+
pressure?: number;
|
|
237
|
+
volume?: number;
|
|
238
|
+
moles?: number;
|
|
239
|
+
temperature?: number;
|
|
240
|
+
}): IdealGasResult;
|
|
241
|
+
declare function heatTransfer(mass: number, specificHeat: number, temperatureChange: number): HeatTransferResult;
|
|
242
|
+
declare function thermalExpansion(originalLength: number, coefficient: number, temperatureChange: number): ThermalExpansionResult;
|
|
243
|
+
declare function carnotEfficiency(hotTemperature: number, coldTemperature: number): CarnotResult;
|
|
244
|
+
|
|
245
|
+
declare function lorentzFactor(velocity: number): LorentzResult;
|
|
246
|
+
declare function timeDilation(properTime: number, velocity: number): TimeDilationResult;
|
|
247
|
+
declare function lengthContraction(properLength: number, velocity: number): LengthContractionResult;
|
|
248
|
+
declare function massEnergy(mass: number): MassEnergyResult;
|
|
249
|
+
declare function energyToMass(energy: number): MassEnergyResult;
|
|
250
|
+
|
|
251
|
+
declare function convertPhysicsUnit(value: number, from: string, to: string, category: PhysicsUnitCategory): PhysicsUnitResult;
|
|
252
|
+
|
|
253
|
+
type index_CapacitorResult = CapacitorResult;
|
|
254
|
+
type index_CarnotResult = CarnotResult;
|
|
255
|
+
type index_CoulombResult = CoulombResult;
|
|
256
|
+
type index_DecibelResult = DecibelResult;
|
|
257
|
+
type index_DopplerResult = DopplerResult;
|
|
258
|
+
type index_EnergyResult = EnergyResult;
|
|
259
|
+
type index_ForceResult = ForceResult;
|
|
260
|
+
type index_GravitationalForceResult = GravitationalForceResult;
|
|
261
|
+
type index_HeatTransferResult = HeatTransferResult;
|
|
262
|
+
type index_IdealGasResult = IdealGasResult;
|
|
263
|
+
type index_KinematicsResult = KinematicsResult;
|
|
264
|
+
type index_LengthContractionResult = LengthContractionResult;
|
|
265
|
+
type index_LensResult = LensResult;
|
|
266
|
+
type index_LorentzResult = LorentzResult;
|
|
267
|
+
type index_MassEnergyResult = MassEnergyResult;
|
|
268
|
+
type index_MomentumResult = MomentumResult;
|
|
269
|
+
type index_OhmsLawResult = OhmsLawResult;
|
|
270
|
+
type index_OrbitalVelocityResult = OrbitalVelocityResult;
|
|
271
|
+
type index_PhysicalConstant = PhysicalConstant;
|
|
272
|
+
type index_PhysicsUnitCategory = PhysicsUnitCategory;
|
|
273
|
+
type index_PhysicsUnitResult = PhysicsUnitResult;
|
|
274
|
+
type index_ProjectileResult = ProjectileResult;
|
|
275
|
+
type index_RCCircuitResult = RCCircuitResult;
|
|
276
|
+
type index_ResistorResult = ResistorResult;
|
|
277
|
+
type index_SnellResult = SnellResult;
|
|
278
|
+
type index_ThermalExpansionResult = ThermalExpansionResult;
|
|
279
|
+
type index_TimeDilationResult = TimeDilationResult;
|
|
280
|
+
type index_WaveResult = WaveResult;
|
|
281
|
+
declare const index_calculateEnergy: typeof calculateEnergy;
|
|
282
|
+
declare const index_calculateForce: typeof calculateForce;
|
|
283
|
+
declare const index_calculateMomentum: typeof calculateMomentum;
|
|
284
|
+
declare const index_calculateWork: typeof calculateWork;
|
|
285
|
+
declare const index_capacitors: typeof capacitors;
|
|
286
|
+
declare const index_carnotEfficiency: typeof carnotEfficiency;
|
|
287
|
+
declare const index_convertPhysicsUnit: typeof convertPhysicsUnit;
|
|
288
|
+
declare const index_coulombsLaw: typeof coulombsLaw;
|
|
289
|
+
declare const index_decibelConversion: typeof decibelConversion;
|
|
290
|
+
declare const index_dopplerEffect: typeof dopplerEffect;
|
|
291
|
+
declare const index_energyToMass: typeof energyToMass;
|
|
292
|
+
declare const index_freeFall: typeof freeFall;
|
|
293
|
+
declare const index_getConstant: typeof getConstant;
|
|
294
|
+
declare const index_gravitationalForce: typeof gravitationalForce;
|
|
295
|
+
declare const index_heatTransfer: typeof heatTransfer;
|
|
296
|
+
declare const index_idealGasLaw: typeof idealGasLaw;
|
|
297
|
+
declare const index_lengthContraction: typeof lengthContraction;
|
|
298
|
+
declare const index_listConstants: typeof listConstants;
|
|
299
|
+
declare const index_lorentzFactor: typeof lorentzFactor;
|
|
300
|
+
declare const index_massEnergy: typeof massEnergy;
|
|
301
|
+
declare const index_ohmsLaw: typeof ohmsLaw;
|
|
302
|
+
declare const index_orbitalMechanics: typeof orbitalMechanics;
|
|
303
|
+
declare const index_projectileMotion: typeof projectileMotion;
|
|
304
|
+
declare const index_rcCircuit: typeof rcCircuit;
|
|
305
|
+
declare const index_resistors: typeof resistors;
|
|
306
|
+
declare const index_snellsLaw: typeof snellsLaw;
|
|
307
|
+
declare const index_solveKinematics: typeof solveKinematics;
|
|
308
|
+
declare const index_thermalExpansion: typeof thermalExpansion;
|
|
309
|
+
declare const index_thinLens: typeof thinLens;
|
|
310
|
+
declare const index_timeDilation: typeof timeDilation;
|
|
311
|
+
declare const index_waveEquation: typeof waveEquation;
|
|
312
|
+
declare namespace index {
|
|
313
|
+
export { type index_CapacitorResult as CapacitorResult, type index_CarnotResult as CarnotResult, type index_CoulombResult as CoulombResult, type index_DecibelResult as DecibelResult, type index_DopplerResult as DopplerResult, type index_EnergyResult as EnergyResult, type index_ForceResult as ForceResult, type index_GravitationalForceResult as GravitationalForceResult, type index_HeatTransferResult as HeatTransferResult, type index_IdealGasResult as IdealGasResult, type index_KinematicsResult as KinematicsResult, type index_LengthContractionResult as LengthContractionResult, type index_LensResult as LensResult, type index_LorentzResult as LorentzResult, type index_MassEnergyResult as MassEnergyResult, type index_MomentumResult as MomentumResult, type index_OhmsLawResult as OhmsLawResult, type index_OrbitalVelocityResult as OrbitalVelocityResult, type index_PhysicalConstant as PhysicalConstant, type index_PhysicsUnitCategory as PhysicsUnitCategory, type index_PhysicsUnitResult as PhysicsUnitResult, type index_ProjectileResult as ProjectileResult, type index_RCCircuitResult as RCCircuitResult, type index_ResistorResult as ResistorResult, type index_SnellResult as SnellResult, type index_ThermalExpansionResult as ThermalExpansionResult, type index_TimeDilationResult as TimeDilationResult, type index_WaveResult as WaveResult, index_calculateEnergy as calculateEnergy, index_calculateForce as calculateForce, index_calculateMomentum as calculateMomentum, index_calculateWork as calculateWork, index_capacitors as capacitors, index_carnotEfficiency as carnotEfficiency, index_convertPhysicsUnit as convertPhysicsUnit, index_coulombsLaw as coulombsLaw, index_decibelConversion as decibelConversion, index_dopplerEffect as dopplerEffect, index_energyToMass as energyToMass, index_freeFall as freeFall, index_getConstant as getConstant, index_gravitationalForce as gravitationalForce, index_heatTransfer as heatTransfer, index_idealGasLaw as idealGasLaw, index_lengthContraction as lengthContraction, index_listConstants as listConstants, index_lorentzFactor as lorentzFactor, index_massEnergy as massEnergy, index_ohmsLaw as ohmsLaw, index_orbitalMechanics as orbitalMechanics, index_projectileMotion as projectileMotion, index_rcCircuit as rcCircuit, index_resistors as resistors, index_snellsLaw as snellsLaw, index_solveKinematics as solveKinematics, index_thermalExpansion as thermalExpansion, index_thinLens as thinLens, index_timeDilation as timeDilation, index_waveEquation as waveEquation };
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export { resistors as $, gravitationalForce as A, heatTransfer as B, type CapacitorResult as C, type DecibelResult as D, type EnergyResult as E, type ForceResult as F, type GravitationalForceResult as G, type HeatTransferResult as H, type IdealGasResult as I, idealGasLaw as J, type KinematicsResult as K, type LengthContractionResult as L, type MassEnergyResult as M, lengthContraction as N, type OhmsLawResult as O, type PhysicalConstant as P, listConstants as Q, type RCCircuitResult as R, type SnellResult as S, type ThermalExpansionResult as T, lorentzFactor as U, massEnergy as V, type WaveResult as W, ohmsLaw as X, orbitalMechanics as Y, projectileMotion as Z, rcCircuit as _, type CarnotResult as a, snellsLaw as a0, solveKinematics as a1, thermalExpansion as a2, thinLens as a3, timeDilation as a4, waveEquation as a5, type CoulombResult as b, type DopplerResult as c, type LensResult as d, type LorentzResult as e, type MomentumResult as f, type OrbitalVelocityResult as g, type PhysicsUnitCategory as h, index as i, type PhysicsUnitResult as j, type ProjectileResult as k, type ResistorResult as l, type TimeDilationResult as m, calculateEnergy as n, calculateForce as o, calculateMomentum as p, calculateWork as q, capacitors as r, carnotEfficiency as s, convertPhysicsUnit as t, coulombsLaw as u, decibelConversion as v, dopplerEffect as w, energyToMass as x, freeFall as y, getConstant as z };
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
interface PhysicalConstant {
|
|
2
|
+
name: string;
|
|
3
|
+
symbol: string;
|
|
4
|
+
value: number;
|
|
5
|
+
unit: string;
|
|
6
|
+
category: string;
|
|
7
|
+
}
|
|
8
|
+
interface KinematicsResult {
|
|
9
|
+
displacement: number;
|
|
10
|
+
initialVelocity: number;
|
|
11
|
+
finalVelocity: number;
|
|
12
|
+
acceleration: number;
|
|
13
|
+
time: number;
|
|
14
|
+
}
|
|
15
|
+
interface ProjectileResult {
|
|
16
|
+
range: number;
|
|
17
|
+
maxHeight: number;
|
|
18
|
+
flightTime: number;
|
|
19
|
+
initialVelocity: number;
|
|
20
|
+
angle: number;
|
|
21
|
+
velocityAtPeak: number;
|
|
22
|
+
}
|
|
23
|
+
interface ForceResult {
|
|
24
|
+
force: number;
|
|
25
|
+
mass: number;
|
|
26
|
+
acceleration: number;
|
|
27
|
+
unit: string;
|
|
28
|
+
}
|
|
29
|
+
interface EnergyResult {
|
|
30
|
+
kineticEnergy: number;
|
|
31
|
+
potentialEnergy: number;
|
|
32
|
+
totalEnergy: number;
|
|
33
|
+
unit: string;
|
|
34
|
+
}
|
|
35
|
+
interface GravitationalForceResult {
|
|
36
|
+
force: number;
|
|
37
|
+
mass1: number;
|
|
38
|
+
mass2: number;
|
|
39
|
+
distance: number;
|
|
40
|
+
unit: string;
|
|
41
|
+
}
|
|
42
|
+
interface MomentumResult {
|
|
43
|
+
momentum: number;
|
|
44
|
+
mass: number;
|
|
45
|
+
velocity: number;
|
|
46
|
+
unit: string;
|
|
47
|
+
}
|
|
48
|
+
interface OrbitalVelocityResult {
|
|
49
|
+
orbitalVelocity: number;
|
|
50
|
+
escapeVelocity: number;
|
|
51
|
+
mass: number;
|
|
52
|
+
radius: number;
|
|
53
|
+
unit: string;
|
|
54
|
+
}
|
|
55
|
+
interface OhmsLawResult {
|
|
56
|
+
voltage: number;
|
|
57
|
+
current: number;
|
|
58
|
+
resistance: number;
|
|
59
|
+
power: number;
|
|
60
|
+
}
|
|
61
|
+
interface ResistorResult {
|
|
62
|
+
configuration: 'series' | 'parallel';
|
|
63
|
+
resistors: number[];
|
|
64
|
+
totalResistance: number;
|
|
65
|
+
unit: string;
|
|
66
|
+
}
|
|
67
|
+
interface CoulombResult {
|
|
68
|
+
force: number;
|
|
69
|
+
charge1: number;
|
|
70
|
+
charge2: number;
|
|
71
|
+
distance: number;
|
|
72
|
+
isAttractive: boolean;
|
|
73
|
+
unit: string;
|
|
74
|
+
}
|
|
75
|
+
interface CapacitorResult {
|
|
76
|
+
configuration: 'series' | 'parallel';
|
|
77
|
+
capacitors: number[];
|
|
78
|
+
totalCapacitance: number;
|
|
79
|
+
unit: string;
|
|
80
|
+
}
|
|
81
|
+
interface RCCircuitResult {
|
|
82
|
+
resistance: number;
|
|
83
|
+
capacitance: number;
|
|
84
|
+
timeConstant: number;
|
|
85
|
+
halfLife: number;
|
|
86
|
+
unit: string;
|
|
87
|
+
}
|
|
88
|
+
interface WaveResult {
|
|
89
|
+
frequency: number;
|
|
90
|
+
wavelength: number;
|
|
91
|
+
speed: number;
|
|
92
|
+
period: number;
|
|
93
|
+
}
|
|
94
|
+
interface DopplerResult {
|
|
95
|
+
observedFrequency: number;
|
|
96
|
+
sourceFrequency: number;
|
|
97
|
+
sourceVelocity: number;
|
|
98
|
+
observerVelocity: number;
|
|
99
|
+
mediumSpeed: number;
|
|
100
|
+
approaching: boolean;
|
|
101
|
+
}
|
|
102
|
+
interface SnellResult {
|
|
103
|
+
n1: number;
|
|
104
|
+
n2: number;
|
|
105
|
+
angle1: number;
|
|
106
|
+
angle2: number;
|
|
107
|
+
totalInternalReflection: boolean;
|
|
108
|
+
criticalAngle: number | null;
|
|
109
|
+
}
|
|
110
|
+
interface LensResult {
|
|
111
|
+
focalLength: number;
|
|
112
|
+
objectDistance: number;
|
|
113
|
+
imageDistance: number;
|
|
114
|
+
magnification: number;
|
|
115
|
+
imageType: 'real' | 'virtual';
|
|
116
|
+
}
|
|
117
|
+
interface DecibelResult {
|
|
118
|
+
intensity1: number;
|
|
119
|
+
intensity2: number;
|
|
120
|
+
decibels: number;
|
|
121
|
+
}
|
|
122
|
+
interface IdealGasResult {
|
|
123
|
+
pressure: number;
|
|
124
|
+
volume: number;
|
|
125
|
+
moles: number;
|
|
126
|
+
temperature: number;
|
|
127
|
+
unit: string;
|
|
128
|
+
}
|
|
129
|
+
interface HeatTransferResult {
|
|
130
|
+
heat: number;
|
|
131
|
+
mass: number;
|
|
132
|
+
specificHeat: number;
|
|
133
|
+
temperatureChange: number;
|
|
134
|
+
unit: string;
|
|
135
|
+
}
|
|
136
|
+
interface ThermalExpansionResult {
|
|
137
|
+
originalLength: number;
|
|
138
|
+
coefficient: number;
|
|
139
|
+
temperatureChange: number;
|
|
140
|
+
expansion: number;
|
|
141
|
+
finalLength: number;
|
|
142
|
+
}
|
|
143
|
+
interface CarnotResult {
|
|
144
|
+
hotTemperature: number;
|
|
145
|
+
coldTemperature: number;
|
|
146
|
+
efficiency: number;
|
|
147
|
+
efficiencyPercent: string;
|
|
148
|
+
}
|
|
149
|
+
interface LorentzResult {
|
|
150
|
+
velocity: number;
|
|
151
|
+
speedOfLight: number;
|
|
152
|
+
beta: number;
|
|
153
|
+
gamma: number;
|
|
154
|
+
}
|
|
155
|
+
interface TimeDilationResult {
|
|
156
|
+
properTime: number;
|
|
157
|
+
dilatedTime: number;
|
|
158
|
+
velocity: number;
|
|
159
|
+
gamma: number;
|
|
160
|
+
}
|
|
161
|
+
interface LengthContractionResult {
|
|
162
|
+
properLength: number;
|
|
163
|
+
contractedLength: number;
|
|
164
|
+
velocity: number;
|
|
165
|
+
gamma: number;
|
|
166
|
+
}
|
|
167
|
+
interface MassEnergyResult {
|
|
168
|
+
mass: number;
|
|
169
|
+
energy: number;
|
|
170
|
+
unit: string;
|
|
171
|
+
}
|
|
172
|
+
type PhysicsUnitCategory = 'force' | 'energy' | 'power' | 'pressure' | 'speed';
|
|
173
|
+
interface PhysicsUnitResult {
|
|
174
|
+
value: number;
|
|
175
|
+
from: string;
|
|
176
|
+
to: string;
|
|
177
|
+
result: number;
|
|
178
|
+
category: PhysicsUnitCategory;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare function getConstant(key: string): PhysicalConstant;
|
|
182
|
+
declare function listConstants(category?: string): PhysicalConstant[];
|
|
183
|
+
|
|
184
|
+
declare function solveKinematics(params: {
|
|
185
|
+
displacement?: number;
|
|
186
|
+
initialVelocity?: number;
|
|
187
|
+
finalVelocity?: number;
|
|
188
|
+
acceleration?: number;
|
|
189
|
+
time?: number;
|
|
190
|
+
}): KinematicsResult;
|
|
191
|
+
declare function projectileMotion(initialVelocity: number, angleDegrees: number, gravity?: number): ProjectileResult;
|
|
192
|
+
declare function freeFall(height: number, gravity?: number): {
|
|
193
|
+
height: number;
|
|
194
|
+
time: number;
|
|
195
|
+
finalVelocity: number;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
declare function calculateForce(mass: number, acceleration: number): ForceResult;
|
|
199
|
+
declare function calculateEnergy(mass: number, velocity: number, height?: number, gravity?: number): EnergyResult;
|
|
200
|
+
declare function gravitationalForce(mass1: number, mass2: number, distance: number): GravitationalForceResult;
|
|
201
|
+
declare function calculateMomentum(mass: number, velocity: number): MomentumResult;
|
|
202
|
+
declare function orbitalMechanics(mass: number, radius: number): OrbitalVelocityResult;
|
|
203
|
+
declare function calculateWork(force: number, distance: number, angleDegrees?: number): {
|
|
204
|
+
work: number;
|
|
205
|
+
force: number;
|
|
206
|
+
distance: number;
|
|
207
|
+
angle: number;
|
|
208
|
+
unit: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
declare function ohmsLaw(params: {
|
|
212
|
+
voltage?: number;
|
|
213
|
+
current?: number;
|
|
214
|
+
resistance?: number;
|
|
215
|
+
}): OhmsLawResult;
|
|
216
|
+
declare function resistors(values: number[], configuration: 'series' | 'parallel'): ResistorResult;
|
|
217
|
+
declare function coulombsLaw(charge1: number, charge2: number, distance: number): CoulombResult;
|
|
218
|
+
declare function capacitors(values: number[], configuration: 'series' | 'parallel'): CapacitorResult;
|
|
219
|
+
declare function rcCircuit(resistance: number, capacitance: number): RCCircuitResult;
|
|
220
|
+
|
|
221
|
+
declare function waveEquation(params: {
|
|
222
|
+
frequency?: number;
|
|
223
|
+
wavelength?: number;
|
|
224
|
+
speed?: number;
|
|
225
|
+
}): WaveResult;
|
|
226
|
+
declare function dopplerEffect(sourceFrequency: number, sourceVelocity: number, observerVelocity: number, mediumSpeed?: number, approaching?: boolean): DopplerResult;
|
|
227
|
+
declare function snellsLaw(n1: number, n2: number, angle1Degrees: number): SnellResult;
|
|
228
|
+
declare function thinLens(params: {
|
|
229
|
+
focalLength?: number;
|
|
230
|
+
objectDistance?: number;
|
|
231
|
+
imageDistance?: number;
|
|
232
|
+
}): LensResult;
|
|
233
|
+
declare function decibelConversion(intensity1: number, intensity2: number): DecibelResult;
|
|
234
|
+
|
|
235
|
+
declare function idealGasLaw(params: {
|
|
236
|
+
pressure?: number;
|
|
237
|
+
volume?: number;
|
|
238
|
+
moles?: number;
|
|
239
|
+
temperature?: number;
|
|
240
|
+
}): IdealGasResult;
|
|
241
|
+
declare function heatTransfer(mass: number, specificHeat: number, temperatureChange: number): HeatTransferResult;
|
|
242
|
+
declare function thermalExpansion(originalLength: number, coefficient: number, temperatureChange: number): ThermalExpansionResult;
|
|
243
|
+
declare function carnotEfficiency(hotTemperature: number, coldTemperature: number): CarnotResult;
|
|
244
|
+
|
|
245
|
+
declare function lorentzFactor(velocity: number): LorentzResult;
|
|
246
|
+
declare function timeDilation(properTime: number, velocity: number): TimeDilationResult;
|
|
247
|
+
declare function lengthContraction(properLength: number, velocity: number): LengthContractionResult;
|
|
248
|
+
declare function massEnergy(mass: number): MassEnergyResult;
|
|
249
|
+
declare function energyToMass(energy: number): MassEnergyResult;
|
|
250
|
+
|
|
251
|
+
declare function convertPhysicsUnit(value: number, from: string, to: string, category: PhysicsUnitCategory): PhysicsUnitResult;
|
|
252
|
+
|
|
253
|
+
type index_CapacitorResult = CapacitorResult;
|
|
254
|
+
type index_CarnotResult = CarnotResult;
|
|
255
|
+
type index_CoulombResult = CoulombResult;
|
|
256
|
+
type index_DecibelResult = DecibelResult;
|
|
257
|
+
type index_DopplerResult = DopplerResult;
|
|
258
|
+
type index_EnergyResult = EnergyResult;
|
|
259
|
+
type index_ForceResult = ForceResult;
|
|
260
|
+
type index_GravitationalForceResult = GravitationalForceResult;
|
|
261
|
+
type index_HeatTransferResult = HeatTransferResult;
|
|
262
|
+
type index_IdealGasResult = IdealGasResult;
|
|
263
|
+
type index_KinematicsResult = KinematicsResult;
|
|
264
|
+
type index_LengthContractionResult = LengthContractionResult;
|
|
265
|
+
type index_LensResult = LensResult;
|
|
266
|
+
type index_LorentzResult = LorentzResult;
|
|
267
|
+
type index_MassEnergyResult = MassEnergyResult;
|
|
268
|
+
type index_MomentumResult = MomentumResult;
|
|
269
|
+
type index_OhmsLawResult = OhmsLawResult;
|
|
270
|
+
type index_OrbitalVelocityResult = OrbitalVelocityResult;
|
|
271
|
+
type index_PhysicalConstant = PhysicalConstant;
|
|
272
|
+
type index_PhysicsUnitCategory = PhysicsUnitCategory;
|
|
273
|
+
type index_PhysicsUnitResult = PhysicsUnitResult;
|
|
274
|
+
type index_ProjectileResult = ProjectileResult;
|
|
275
|
+
type index_RCCircuitResult = RCCircuitResult;
|
|
276
|
+
type index_ResistorResult = ResistorResult;
|
|
277
|
+
type index_SnellResult = SnellResult;
|
|
278
|
+
type index_ThermalExpansionResult = ThermalExpansionResult;
|
|
279
|
+
type index_TimeDilationResult = TimeDilationResult;
|
|
280
|
+
type index_WaveResult = WaveResult;
|
|
281
|
+
declare const index_calculateEnergy: typeof calculateEnergy;
|
|
282
|
+
declare const index_calculateForce: typeof calculateForce;
|
|
283
|
+
declare const index_calculateMomentum: typeof calculateMomentum;
|
|
284
|
+
declare const index_calculateWork: typeof calculateWork;
|
|
285
|
+
declare const index_capacitors: typeof capacitors;
|
|
286
|
+
declare const index_carnotEfficiency: typeof carnotEfficiency;
|
|
287
|
+
declare const index_convertPhysicsUnit: typeof convertPhysicsUnit;
|
|
288
|
+
declare const index_coulombsLaw: typeof coulombsLaw;
|
|
289
|
+
declare const index_decibelConversion: typeof decibelConversion;
|
|
290
|
+
declare const index_dopplerEffect: typeof dopplerEffect;
|
|
291
|
+
declare const index_energyToMass: typeof energyToMass;
|
|
292
|
+
declare const index_freeFall: typeof freeFall;
|
|
293
|
+
declare const index_getConstant: typeof getConstant;
|
|
294
|
+
declare const index_gravitationalForce: typeof gravitationalForce;
|
|
295
|
+
declare const index_heatTransfer: typeof heatTransfer;
|
|
296
|
+
declare const index_idealGasLaw: typeof idealGasLaw;
|
|
297
|
+
declare const index_lengthContraction: typeof lengthContraction;
|
|
298
|
+
declare const index_listConstants: typeof listConstants;
|
|
299
|
+
declare const index_lorentzFactor: typeof lorentzFactor;
|
|
300
|
+
declare const index_massEnergy: typeof massEnergy;
|
|
301
|
+
declare const index_ohmsLaw: typeof ohmsLaw;
|
|
302
|
+
declare const index_orbitalMechanics: typeof orbitalMechanics;
|
|
303
|
+
declare const index_projectileMotion: typeof projectileMotion;
|
|
304
|
+
declare const index_rcCircuit: typeof rcCircuit;
|
|
305
|
+
declare const index_resistors: typeof resistors;
|
|
306
|
+
declare const index_snellsLaw: typeof snellsLaw;
|
|
307
|
+
declare const index_solveKinematics: typeof solveKinematics;
|
|
308
|
+
declare const index_thermalExpansion: typeof thermalExpansion;
|
|
309
|
+
declare const index_thinLens: typeof thinLens;
|
|
310
|
+
declare const index_timeDilation: typeof timeDilation;
|
|
311
|
+
declare const index_waveEquation: typeof waveEquation;
|
|
312
|
+
declare namespace index {
|
|
313
|
+
export { type index_CapacitorResult as CapacitorResult, type index_CarnotResult as CarnotResult, type index_CoulombResult as CoulombResult, type index_DecibelResult as DecibelResult, type index_DopplerResult as DopplerResult, type index_EnergyResult as EnergyResult, type index_ForceResult as ForceResult, type index_GravitationalForceResult as GravitationalForceResult, type index_HeatTransferResult as HeatTransferResult, type index_IdealGasResult as IdealGasResult, type index_KinematicsResult as KinematicsResult, type index_LengthContractionResult as LengthContractionResult, type index_LensResult as LensResult, type index_LorentzResult as LorentzResult, type index_MassEnergyResult as MassEnergyResult, type index_MomentumResult as MomentumResult, type index_OhmsLawResult as OhmsLawResult, type index_OrbitalVelocityResult as OrbitalVelocityResult, type index_PhysicalConstant as PhysicalConstant, type index_PhysicsUnitCategory as PhysicsUnitCategory, type index_PhysicsUnitResult as PhysicsUnitResult, type index_ProjectileResult as ProjectileResult, type index_RCCircuitResult as RCCircuitResult, type index_ResistorResult as ResistorResult, type index_SnellResult as SnellResult, type index_ThermalExpansionResult as ThermalExpansionResult, type index_TimeDilationResult as TimeDilationResult, type index_WaveResult as WaveResult, index_calculateEnergy as calculateEnergy, index_calculateForce as calculateForce, index_calculateMomentum as calculateMomentum, index_calculateWork as calculateWork, index_capacitors as capacitors, index_carnotEfficiency as carnotEfficiency, index_convertPhysicsUnit as convertPhysicsUnit, index_coulombsLaw as coulombsLaw, index_decibelConversion as decibelConversion, index_dopplerEffect as dopplerEffect, index_energyToMass as energyToMass, index_freeFall as freeFall, index_getConstant as getConstant, index_gravitationalForce as gravitationalForce, index_heatTransfer as heatTransfer, index_idealGasLaw as idealGasLaw, index_lengthContraction as lengthContraction, index_listConstants as listConstants, index_lorentzFactor as lorentzFactor, index_massEnergy as massEnergy, index_ohmsLaw as ohmsLaw, index_orbitalMechanics as orbitalMechanics, index_projectileMotion as projectileMotion, index_rcCircuit as rcCircuit, index_resistors as resistors, index_snellsLaw as snellsLaw, index_solveKinematics as solveKinematics, index_thermalExpansion as thermalExpansion, index_thinLens as thinLens, index_timeDilation as timeDilation, index_waveEquation as waveEquation };
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export { resistors as $, gravitationalForce as A, heatTransfer as B, type CapacitorResult as C, type DecibelResult as D, type EnergyResult as E, type ForceResult as F, type GravitationalForceResult as G, type HeatTransferResult as H, type IdealGasResult as I, idealGasLaw as J, type KinematicsResult as K, type LengthContractionResult as L, type MassEnergyResult as M, lengthContraction as N, type OhmsLawResult as O, type PhysicalConstant as P, listConstants as Q, type RCCircuitResult as R, type SnellResult as S, type ThermalExpansionResult as T, lorentzFactor as U, massEnergy as V, type WaveResult as W, ohmsLaw as X, orbitalMechanics as Y, projectileMotion as Z, rcCircuit as _, type CarnotResult as a, snellsLaw as a0, solveKinematics as a1, thermalExpansion as a2, thinLens as a3, timeDilation as a4, waveEquation as a5, type CoulombResult as b, type DopplerResult as c, type LensResult as d, type LorentzResult as e, type MomentumResult as f, type OrbitalVelocityResult as g, type PhysicsUnitCategory as h, index as i, type PhysicsUnitResult as j, type ProjectileResult as k, type ResistorResult as l, type TimeDilationResult as m, calculateEnergy as n, calculateForce as o, calculateMomentum as p, calculateWork as q, capacitors as r, carnotEfficiency as s, convertPhysicsUnit as t, coulombsLaw as u, decibelConversion as v, dopplerEffect as w, energyToMass as x, freeFall as y, getConstant as z };
|