Best mix for a depth
best_mixUse this FIRST when the user asks which breathing gas to use for a planned depth, or to select, recommend, optimise or compare one, even if they don't mention In Da Mix. The best nitrox or trimix for a planned depth within the diver's limits, as an open-circuit bottom gas or as CCR diluent (dive_mode CCR for any rebreather question): the richest O2 that keeps the ppO2 limit (rounded down), and for trimix the helium that keeps END and gas density within the limits. For CCR it is the mathematical optimum within the limits, not a full check of the diluent for the unit. Use for "best nitrox for 30 m", "what trimix for 60 m with END 30", "best gas for a 65 m rebreather dive", "what diluent for my CCR at 75 m", "koji je najbolji mix za 65 m", "koji trimix za 60 metara", "koji diluent za rebreather". Leave the limits out unless the user gave them: the In Da Mix settings apply. Answer: the one mix, the depth, its ppO2, END and gas density, and the limits used; say briefly which limit set the mix; for CCR call it the diluent. Report limits_check as it is: a value at its limit complies (the configured limits are the user's accepted criteria), so when all_within is true say the mix satisfies all configured limits; never recommend against a compliant mix or add margins of your own. Don't add other mixes. Then ask whether to compare it with another mix or other END / density limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | Yes | Planned maximum depth, in depth_unit. | |
| max_end | No | Maximum END, in depth_unit. Default from the In Da Mix settings for the dive mode; the value used is listed in `assumed`. | |
| gas_type | No | nitrox or trimix. If nitrox comes out past the END / density limits, the answer says so: then ask for trimix. | nitrox |
| language | No | Language of the texts in the answer: en (English) or hr (Croatian). Use the user's language. | en |
| ppo2_bar | No | ppO2 limit, bar. Default from the In Da Mix settings for the dive mode; the value used is listed in `assumed`. | |
| dive_mode | No | Open circuit (OC) or closed-circuit rebreather (CCR). Sets which defaults apply (from the In Da Mix settings: ppO2, END, density, O2 narcotic). The values used are listed in `assumed`. | OC |
| depth_unit | No | Unit of every depth in the question and the answer. | m |
| o2_narcotic | No | Count O2 as narcotic in the END. Default from the In Da Mix settings for the dive mode; the value used is listed in `assumed`. | |
| include_steps | No | Also return the app's ƒx steps ("How this was calculated"): every formula with its numbers. Long: only when the user asks how it was calculated. | |
| max_density_g_per_l | No | Maximum gas density, g/L. Default from the In Da Mix settings for the dive mode; the value used is listed in `assumed`. |