curl --request POST \
--url https://api.fincept.in/quantlib/physics/thermodynamics/ideal-gas \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"n": 1,
"temperature": 273.15,
"volume": 0.0224,
"pressure": 101325
}
'{
"success": true,
"data": {
"entropy": 152.34,
"internal_energy": 8724.5
}
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient credits. This endpoint requires 5 credits."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}quantlib-physics
Calculate Ideal Gas Thermodynamic Properties
Calculates thermodynamic properties of an ideal gas: entropy and internal energy. The ideal gas model is the simplest thermodynamic system and serves as a baseline for understanding more complex behaviors. Useful for theoretical benchmarks and educational purposes.
Use Cases:
- Baseline models for market behavior
- Theoretical efficiency limits
- Educational thermodynamic concepts
- Entropy calculations in simple systems
- Reference values for deviation analysis
Formulas:
- S = n C_V ln(T) + n R ln(V) + S_0
- U = n C_V T (for monoatomic: C_V = 3R/2)
Credits: 5 credits per request (Pro Tier) [Tier: ENTERPRISE, Credits: 10]
POST
/
quantlib
/
physics
/
thermodynamics
/
ideal-gas
curl --request POST \
--url https://api.fincept.in/quantlib/physics/thermodynamics/ideal-gas \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"n": 1,
"temperature": 273.15,
"volume": 0.0224,
"pressure": 101325
}
'{
"success": true,
"data": {
"entropy": 152.34,
"internal_energy": 8724.5
}
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient credits. This endpoint requires 5 credits."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
API key for authentication. Get your key at https://api.fincept.in/auth/register
Body
application/json
⌘I
