Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions base/src/test/test_trigonometric_reciprocals.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#![allow(clippy::unwrap_used)]

use crate::test::util::new_empty_model;

#[test]
fn fn_arguments() {
let mut model = new_empty_model();
model._set("A1", "=CSC()");
model._set("A2", "=SEC()");
model._set("A3", "=COT()");

model._set("A4", "=CSCH()");
model._set("A5", "=SECH()");
model._set("A6", "=COTH()");

model._set("A7", "=ACOT()");
model._set("A8", "=ACOTH()");

model._set("B1", "=CSC(1, 2)");
model._set("B2", "=SEC(1, 2)");
model._set("B3", "=COT(1, 2)");

model._set("B4", "=CSCH(1, 2)");
model._set("B5", "=SECH(1, 2)");
model._set("B6", "=COTH(1, 2)");

model._set("B7", "=ACOT(1, 2)");
model._set("B8", "=ACOTH(1, 2)");

model.evaluate();

assert_eq!(model._get_text("A1"), *"#ERROR!");
assert_eq!(model._get_text("A2"), *"#ERROR!");
assert_eq!(model._get_text("A3"), *"#ERROR!");

assert_eq!(model._get_text("A4"), *"#ERROR!");
assert_eq!(model._get_text("A5"), *"#ERROR!");
assert_eq!(model._get_text("A6"), *"#ERROR!");

assert_eq!(model._get_text("A7"), *"#ERROR!");
assert_eq!(model._get_text("A8"), *"#ERROR!");

assert_eq!(model._get_text("B1"), *"#ERROR!");
assert_eq!(model._get_text("B2"), *"#ERROR!");
assert_eq!(model._get_text("B3"), *"#ERROR!");

assert_eq!(model._get_text("B4"), *"#ERROR!");
assert_eq!(model._get_text("B5"), *"#ERROR!");
assert_eq!(model._get_text("B6"), *"#ERROR!");

assert_eq!(model._get_text("B7"), *"#ERROR!");
assert_eq!(model._get_text("B8"), *"#ERROR!");
}
16 changes: 8 additions & 8 deletions docs/src/functions/math-and-trigonometry.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ You can track the progress in this [GitHub issue](https://github.com/ironcalc/Ir
| ABS | <Badge type="tip" text="Available" /> | – |
| ACOS | <Badge type="tip" text="Available" /> | [ACOS](math_and_trigonometry/acos) |
| ACOSH | <Badge type="tip" text="Available" /> | [ACOSH](math_and_trigonometry/acosh) |
| ACOT | <Badge type="info" text="Not implemented yet" /> | – |
| ACOTH | <Badge type="info" text="Not implemented yet" /> | – |
| ACOT | <Badge type="tip" text="Available" /> | – |
| ACOTH | <Badge type="tip" text="Available" /> | – |
| AGGREGATE | <Badge type="info" text="Not implemented yet" /> | – |
| ARABIC | <Badge type="tip" text="Available" /> | – |
| ASIN | <Badge type="tip" text="Available" /> | [ASIN](math_and_trigonometry/asin) |
Expand All @@ -31,10 +31,10 @@ You can track the progress in this [GitHub issue](https://github.com/ironcalc/Ir
| COMBINA | <Badge type="tip" text="Available" /> | – |
| COS | <Badge type="tip" text="Available" /> | [COS](math_and_trigonometry/cos) |
| COSH | <Badge type="tip" text="Available" /> | [COSH](math_and_trigonometry/cosh) |
| COT | <Badge type="info" text="Not implemented yet" /> | – |
| COTH | <Badge type="info" text="Not implemented yet" /> | – |
| CSC | <Badge type="info" text="Not implemented yet" /> | – |
| CSCH | <Badge type="info" text="Not implemented yet" /> | – |
| COT | <Badge type="tip" text="Available" /> | – |
| COTH | <Badge type="tip" text="Available" /> | – |
| CSC | <Badge type="tip" text="Available" /> | – |
| CSCH | <Badge type="tip" text="Available" /> | – |
| DECIMAL | <Badge type="info" text="Not implemented yet" /> | – |
| DEGREES | <Badge type="tip" text="Available" /> | [DEGREES](math_and_trigonometry/degrees) |
| EVEN | <Badge type="tip" text="Available" /> | [EVEN](math_and_trigonometry/even) |
Expand Down Expand Up @@ -72,8 +72,8 @@ You can track the progress in this [GitHub issue](https://github.com/ironcalc/Ir
| ROUND | <Badge type="tip" text="Available" /> | – |
| ROUNDDOWN | <Badge type="tip" text="Available" /> | – |
| ROUNDUP | <Badge type="tip" text="Available" /> | – |
| SEC | <Badge type="info" text="Not implemented yet" /> | – |
| SECH | <Badge type="info" text="Not implemented yet" /> | – |
| SEC | <Badge type="tip" text="Available" /> | – |
| SECH | <Badge type="tip" text="Available" /> | – |
| SERIESSUM | <Badge type="info" text="Not implemented yet" /> | – |
| SEQUENCE | <Badge type="info" text="Not implemented yet" /> | – |
| SIGN | <Badge type="info" text="Not implemented yet" /> | – |
Expand Down
3 changes: 1 addition & 2 deletions docs/src/functions/math_and_trigonometry/acot.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# ACOT

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 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).
:::
3 changes: 1 addition & 2 deletions docs/src/functions/math_and_trigonometry/acoth.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# ACOTH

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 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).
:::
3 changes: 1 addition & 2 deletions docs/src/functions/math_and_trigonometry/cot.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# COT

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 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).
:::
3 changes: 1 addition & 2 deletions docs/src/functions/math_and_trigonometry/coth.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# COTH

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 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).
:::
3 changes: 1 addition & 2 deletions docs/src/functions/math_and_trigonometry/csc.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# CSC

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 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).
:::
3 changes: 1 addition & 2 deletions docs/src/functions/math_and_trigonometry/csch.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# CSCH

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 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).
:::
3 changes: 1 addition & 2 deletions docs/src/functions/math_and_trigonometry/sec.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# SEC

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 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).
:::
3 changes: 1 addition & 2 deletions docs/src/functions/math_and_trigonometry/sech.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ lang: en-US
# SECH

::: warning
🚧 This function is not yet available in IronCalc.
[Follow development here](https://github.com/ironcalc/IronCalc/labels/Functions)
🚧 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).
:::
Binary file added xlsx/tests/calc_tests/TRIGONOMETRIC.xlsx
Binary file not shown.