Add GEOMEAN .xlsx, Update .md files, and Run cargo fmt
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
e5aff48e36
commit
d4a2289826
@@ -636,7 +636,7 @@ impl Model {
|
|||||||
CalcResult::Number(max)
|
CalcResult::Number(max)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn fn_geomean(&mut self, args: &[Node], cell: CellReferenceIndex) -> CalcResult{
|
pub(crate) fn fn_geomean(&mut self, args: &[Node], cell: CellReferenceIndex) -> CalcResult {
|
||||||
if args.is_empty() {
|
if args.is_empty() {
|
||||||
return CalcResult::new_args_number_error(cell);
|
return CalcResult::new_args_number_error(cell);
|
||||||
}
|
}
|
||||||
@@ -714,6 +714,6 @@ impl Model {
|
|||||||
message: "Division by Zero".to_string(),
|
message: "Division by Zero".to_string(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
CalcResult::Number(product.powf(1.0/count))
|
CalcResult::Number(product.powf(1.0 / count))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ mod test_escape_quotes;
|
|||||||
mod test_extend;
|
mod test_extend;
|
||||||
mod test_fn_type;
|
mod test_fn_type;
|
||||||
mod test_frozen_rows_and_columns;
|
mod test_frozen_rows_and_columns;
|
||||||
|
mod test_geomean;
|
||||||
mod test_get_cell_content;
|
mod test_get_cell_content;
|
||||||
mod test_issue_155;
|
mod test_issue_155;
|
||||||
mod test_percentage;
|
mod test_percentage;
|
||||||
@@ -59,4 +60,3 @@ mod test_set_functions_error_handling;
|
|||||||
mod test_today;
|
mod test_today;
|
||||||
mod test_types;
|
mod test_types;
|
||||||
mod user_model;
|
mod user_model;
|
||||||
mod test_geomean;
|
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ lang: en-US
|
|||||||
At the moment IronCalc only supports a few function in this section.
|
At the moment IronCalc only supports a few function in this section.
|
||||||
You can track the progress in this [GitHub issue](https://github.com/ironcalc/IronCalc/issues/55).
|
You can track the progress in this [GitHub issue](https://github.com/ironcalc/IronCalc/issues/55).
|
||||||
|
|
||||||
| Function | Status | Documentation |
|
| Function | Status | Documentation |
|
||||||
| ------------------------ | ---------------------------------------------- | ------------- |
|
| ------------------------ |--------------------------------------------------| ------------- |
|
||||||
| AVEDEV | <Badge type="info" text="Not implemented yet" /> | – |
|
| AVEDEV | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| AVERAGE | <Badge type="tip" text="Available" /> | – |
|
| AVERAGE | <Badge type="tip" text="Available" /> | – |
|
||||||
| AVERAGEA | <Badge type="tip" text="Available" /> | – |
|
| AVERAGEA | <Badge type="tip" text="Available" /> | – |
|
||||||
| AVERAGEIF | <Badge type="tip" text="Available" /> | – |
|
| AVERAGEIF | <Badge type="tip" text="Available" /> | – |
|
||||||
| AVERAGEIFS | <Badge type="tip" text="Available" /> | – |
|
| AVERAGEIFS | <Badge type="tip" text="Available" /> | – |
|
||||||
| BETA.DIST | <Badge type="info" text="Not implemented yet" /> | – |
|
| BETA.DIST | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| BETA.INV | <Badge type="info" text="Not implemented yet" /> | – |
|
| BETA.INV | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| BINOM.DIST | <Badge type="info" text="Not implemented yet" /> | – |
|
| BINOM.DIST | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
@@ -29,11 +29,11 @@ You can track the progress in this [GitHub issue](https://github.com/ironcalc/Ir
|
|||||||
| CONFIDENCE.NORM | <Badge type="info" text="Not implemented yet" /> | – |
|
| CONFIDENCE.NORM | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| CONFIDENCE.T | <Badge type="info" text="Not implemented yet" /> | – |
|
| CONFIDENCE.T | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| CORREL | <Badge type="info" text="Not implemented yet" /> | – |
|
| CORREL | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| COUNT | <Badge type="tip" text="Available" /> | – |
|
| COUNT | <Badge type="tip" text="Available" /> | – |
|
||||||
| COUNTA | <Badge type="tip" text="Available" /> | – |
|
| COUNTA | <Badge type="tip" text="Available" /> | – |
|
||||||
| COUNTBLANK | <Badge type="tip" text="Available" /> | – |
|
| COUNTBLANK | <Badge type="tip" text="Available" /> | – |
|
||||||
| COUNTIF | <Badge type="tip" text="Available" /> | – |
|
| COUNTIF | <Badge type="tip" text="Available" /> | – |
|
||||||
| COUNTIFS | <Badge type="tip" text="Available" /> | – |
|
| COUNTIFS | <Badge type="tip" text="Available" /> | – |
|
||||||
| COVARIANCE.P | <Badge type="info" text="Not implemented yet" /> | – |
|
| COVARIANCE.P | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| COVARIANCE.S | <Badge type="info" text="Not implemented yet" /> | – |
|
| COVARIANCE.S | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| DEVSQ | <Badge type="info" text="Not implemented yet" /> | – |
|
| DEVSQ | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
@@ -58,7 +58,7 @@ You can track the progress in this [GitHub issue](https://github.com/ironcalc/Ir
|
|||||||
| GAMMALN | <Badge type="info" text="Not implemented yet" /> | – |
|
| GAMMALN | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| GAMMALN.PRECISE | <Badge type="info" text="Not implemented yet" /> | – |
|
| GAMMALN.PRECISE | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| GAUSS | <Badge type="info" text="Not implemented yet" /> | – |
|
| GAUSS | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| GEOMEAN | <Badge type="info" text="Not implemented yet" /> | – |
|
| GEOMEAN | <Badge type="info" text="Available" /> | – |
|
||||||
| GROWTH | <Badge type="info" text="Not implemented yet" /> | – |
|
| GROWTH | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| HARMEAN | <Badge type="info" text="Not implemented yet" /> | – |
|
| HARMEAN | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| HYPGEOM.DIST | <Badge type="info" text="Not implemented yet" /> | – |
|
| HYPGEOM.DIST | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
@@ -69,9 +69,9 @@ You can track the progress in this [GitHub issue](https://github.com/ironcalc/Ir
|
|||||||
| LOGEST | <Badge type="info" text="Not implemented yet" /> | – |
|
| LOGEST | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| LOGNORM.DIST | <Badge type="info" text="Not implemented yet" /> | – |
|
| LOGNORM.DIST | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| LOGNORM.INV | <Badge type="info" text="Not implemented yet" /> | – |
|
| LOGNORM.INV | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| MAX | <Badge type="tip" text="Available" /> | – |
|
| MAX | <Badge type="tip" text="Available" /> | – |
|
||||||
| MAXA | <Badge type="info" text="Not implemented yet" /> | – |
|
| MAXA | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| MAXIFS | <Badge type="tip" text="Available" /> | – |
|
| MAXIFS | <Badge type="tip" text="Available" /> | – |
|
||||||
| MEDIAN | <Badge type="info" text="Not implemented yet" /> | – |
|
| MEDIAN | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| MODE.MULT | <Badge type="info" text="Not implemented yet" /> | – |
|
| MODE.MULT | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
| MODE.SNGL | <Badge type="info" text="Not implemented yet" /> | – |
|
| MODE.SNGL | <Badge type="info" text="Not implemented yet" /> | – |
|
||||||
|
|||||||
@@ -7,6 +7,5 @@ lang: en-US
|
|||||||
# GEOMEAN
|
# GEOMEAN
|
||||||
|
|
||||||
::: warning
|
::: warning
|
||||||
🚧 This function is not yet available in IronCalc.
|
🚧 This function is implemented but currently lacks detailed documentation. For guidance, you may refer to the equivalent functionality in [Microsoft Excel documentation](https://support.microsoft.com/en-us/office/excel-functions-by-category-5f91f4e9-7b42-46d2-9bd1-63f26a86c0eb).
|
||||||
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
|
|
||||||
:::
|
:::
|
||||||
BIN
xlsx/tests/calc_tests/GEOMEAN.xlsx
Normal file
BIN
xlsx/tests/calc_tests/GEOMEAN.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user