Skip to content

MathOperations

Bases: ABC

Namespace for mathematical operations.

This class cannot be instantiated directly. It can only be accessed using the math attribute of a cell.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1])
>>> column.transform(lambda cell: cell.math.abs())
+-----+
|   a |
| --- |
| i64 |
+=====+
|   1 |
|   0 |
|   1 |
+-----+

Methods:

Name Description
abs

Get the absolute value.

acos

Get the inverse cosine.

acosh

Get the inverse hyperbolic cosine.

asin

Get the inverse sine.

asinh

Get the inverse hyperbolic sine.

atan

Get the inverse tangent.

atanh

Get the inverse hyperbolic tangent.

cbrt

Get the cube root.

ceil

Round up to the nearest integer.

cos

Get the cosine.

cosh

Get the hyperbolic cosine.

degrees_to_radians

Convert degrees to radians.

exp

Get the exponential.

floor

Round down to the nearest integer.

ln

Get the natural logarithm.

log

Get the logarithm to the specified base.

log10

Get the common logarithm (base 10).

radians_to_degrees

Convert radians to degrees.

round_to_decimal_places

Round to the specified number of decimal places.

round_to_significant_figures

Round to the specified number of significant figures.

sign

Get the sign (-1 if negative, 0 for zero, and 1 if positive).

sin

Get the sine.

sinh

Get the hyperbolic sine.

sqrt

Get the square root.

tan

Get the tangent.

tanh

Get the hyperbolic tangent.

Source code in src/safeds/data/tabular/query/_math_operations.py
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
class MathOperations(ABC):
    """
    Namespace for mathematical operations.

    This class cannot be instantiated directly. It can only be accessed using the `math` attribute of a cell.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1])
    >>> column.transform(lambda cell: cell.math.abs())
    +-----+
    |   a |
    | --- |
    | i64 |
    +=====+
    |   1 |
    |   0 |
    |   1 |
    +-----+
    """

    # ------------------------------------------------------------------------------------------------------------------
    # Dunder methods
    # ------------------------------------------------------------------------------------------------------------------

    @abstractmethod
    def __eq__(self, other: object) -> bool: ...

    @abstractmethod
    def __hash__(self) -> int: ...

    @abstractmethod
    def __repr__(self) -> str: ...

    @abstractmethod
    def __sizeof__(self) -> int: ...

    @abstractmethod
    def __str__(self) -> str: ...

    # ------------------------------------------------------------------------------------------------------------------
    # Math operations
    # ------------------------------------------------------------------------------------------------------------------

    @abstractmethod
    def abs(self) -> Cell:
        """
        Get the absolute value.

        Returns
        -------
        cell:
            The absolute value.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [1, -2, None])
        >>> column.transform(lambda cell: cell.math.abs())
        +------+
        |    a |
        |  --- |
        |  i64 |
        +======+
        |    1 |
        |    2 |
        | null |
        +------+
        """

    @abstractmethod
    def acos(self) -> Cell:
        """
        Get the inverse cosine.

        Returns
        -------
        cell:
            The inverse cosine.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.acos())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 3.14159 |
        | 1.57080 |
        | 0.00000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def acosh(self) -> Cell:
        """
        Get the inverse hyperbolic cosine.

        Returns
        -------
        cell:
            The inverse hyperbolic cosine.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.acosh())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        |     NaN |
        |     NaN |
        | 0.00000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def asin(self) -> Cell:
        """
        Get the inverse sine.

        Returns
        -------
        cell:
            The inverse sine.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.asin())
        +----------+
        |        a |
        |      --- |
        |      f64 |
        +==========+
        | -1.57080 |
        |  0.00000 |
        |  1.57080 |
        |     null |
        +----------+
        """

    @abstractmethod
    def asinh(self) -> Cell:
        """
        Get the inverse hyperbolic sine.

        Returns
        -------
        cell:
            The inverse hyperbolic sine.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.asinh())
        +----------+
        |        a |
        |      --- |
        |      f64 |
        +==========+
        | -0.88137 |
        |  0.00000 |
        |  0.88137 |
        |     null |
        +----------+
        """

    @abstractmethod
    def atan(self) -> Cell:
        """
        Get the inverse tangent.

        Returns
        -------
        cell:
            The inverse tangent.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.atan())
        +----------+
        |        a |
        |      --- |
        |      f64 |
        +==========+
        | -0.78540 |
        |  0.00000 |
        |  0.78540 |
        |     null |
        +----------+
        """

    @abstractmethod
    def atanh(self) -> Cell:
        """
        Get the inverse hyperbolic tangent.

        Returns
        -------
        cell:
            The inverse hyperbolic tangent.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.atanh())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        |    -inf |
        | 0.00000 |
        |     inf |
        |    null |
        +---------+
        """

    @abstractmethod
    def cbrt(self) -> Cell:
        """
        Get the cube root.

        Returns
        -------
        cell:
            The cube root.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [1, 8, None])
        >>> column.transform(lambda cell: cell.math.cbrt())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 1.00000 |
        | 2.00000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def ceil(self) -> Cell:
        """
        Round up to the nearest integer.

        Returns
        -------
        cell:
            The rounded value.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [1.1, 3.0, None])
        >>> column.transform(lambda cell: cell.math.ceil())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 2.00000 |
        | 3.00000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def cos(self) -> Cell:
        """
        Get the cosine.

        Returns
        -------
        cell:
            The cosine.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [0, math.pi / 2, math.pi, 3 * math.pi / 2, None])
        >>> column.transform(lambda cell: cell.math.cos())
        +----------+
        |        a |
        |      --- |
        |      f64 |
        +==========+
        |  1.00000 |
        |  0.00000 |
        | -1.00000 |
        | -0.00000 |
        |     null |
        +----------+
        """

    @abstractmethod
    def cosh(self) -> Cell:
        """
        Get the hyperbolic cosine.

        Returns
        -------
        cell:
            The hyperbolic cosine.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.cosh())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 1.54308 |
        | 1.00000 |
        | 1.54308 |
        |    null |
        +---------+
        """

    @abstractmethod
    def degrees_to_radians(self) -> Cell:
        """
        Convert degrees to radians.

        Returns
        -------
        cell:
            The value in radians.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [0, 90, 180, 270, None])
        >>> column.transform(lambda cell: cell.math.degrees_to_radians())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 0.00000 |
        | 1.57080 |
        | 3.14159 |
        | 4.71239 |
        |    null |
        +---------+
        """

    @abstractmethod
    def exp(self) -> Cell:
        """
        Get the exponential.

        Returns
        -------
        cell:
            The exponential.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.exp())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 0.36788 |
        | 1.00000 |
        | 2.71828 |
        |    null |
        +---------+
        """

    @abstractmethod
    def floor(self) -> Cell:
        """
        Round down to the nearest integer.

        Returns
        -------
        cell:
            The rounded value.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [1.1, 3.0, None])
        >>> column.transform(lambda cell: cell.math.floor())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 1.00000 |
        | 3.00000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def ln(self) -> Cell:
        """
        Get the natural logarithm.

        Returns
        -------
        cell:
            The natural logarithm.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [0, 1, math.e, None])
        >>> column.transform(lambda cell: cell.math.ln())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        |    -inf |
        | 0.00000 |
        | 1.00000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def log(self, base: float) -> Cell:
        """
        Get the logarithm to the specified base.

        Parameters
        ----------
        base:
            The base of the logarithm. Must be positive and not equal to 1.

        Returns
        -------
        cell:
            The logarithm.

        Raises
        ------
        ValueError
            If the base is less than or equal to 0 or equal to 1.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column1 = Column("a", [0, 1, math.e, None])
        >>> column1.transform(lambda cell: cell.math.log(math.e))
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        |    -inf |
        | 0.00000 |
        | 1.00000 |
        |    null |
        +---------+

        >>> column2 = Column("a", [0, 1, 10, None])
        >>> column2.transform(lambda cell: cell.math.log(10))
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        |    -inf |
        | 0.00000 |
        | 1.00000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def log10(self) -> Cell:
        """
        Get the common logarithm (base 10).

        Returns
        -------
        cell:
            The common logarithm.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [0, 1, 10, None])
        >>> column.transform(lambda cell: cell.math.log10())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        |    -inf |
        | 0.00000 |
        | 1.00000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def radians_to_degrees(self) -> Cell:
        """
        Convert radians to degrees.

        Returns
        -------
        cell:
            The value in degrees.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [0, math.pi / 2, math.pi, 3 * math.pi / 2, None])
        >>> column.transform(lambda cell: cell.math.radians_to_degrees())
        +-----------+
        |         a |
        |       --- |
        |       f64 |
        +===========+
        |   0.00000 |
        |  90.00000 |
        | 180.00000 |
        | 270.00000 |
        |      null |
        +-----------+
        """

    @abstractmethod
    def round_to_decimal_places(self, decimal_places: int) -> Cell:
        """
        Round to the specified number of decimal places.

        Parameters
        ----------
        decimal_places:
            The number of decimal places to round to. Must be greater than or equal to 0.

        Returns
        -------
        cell:
            The rounded value.

        Raises
        ------
        OutOfBoundsError
            If `decimal_places` is less than 0.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [0.999, 1.123, 3.456, None])
        >>> column.transform(lambda cell: cell.math.round_to_decimal_places(0))
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 1.00000 |
        | 1.00000 |
        | 3.00000 |
        |    null |
        +---------+

        >>> column.transform(lambda cell: cell.math.round_to_decimal_places(2))
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 1.00000 |
        | 1.12000 |
        | 3.46000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def round_to_significant_figures(self, significant_figures: int) -> Cell:
        """
        Round to the specified number of significant figures.

        Parameters
        ----------
        significant_figures:
            The number of significant figures to round to. Must be greater than or equal to 1.

        Returns
        -------
        cell:
            The rounded value.

        Raises
        ------
        OutOfBoundsError
            If `significant_figures` is less than 1.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [0.999, 1.123, 3.456, None])
        >>> column.transform(lambda cell: cell.math.round_to_significant_figures(1))
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 1.00000 |
        | 1.00000 |
        | 3.00000 |
        |    null |
        +---------+

        >>> column.transform(lambda cell: cell.math.round_to_significant_figures(2))
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 1.00000 |
        | 1.10000 |
        | 3.50000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def sign(self) -> Cell:
        """
        Get the sign (-1 if negative, 0 for zero, and 1 if positive).

        Note that IEEE 754 defines a negative zero (-0) and a positive zero (+0). This method return a negative zero
        for -0 and a positive zero for +0.

        Returns
        -------
        cell:
            The sign.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column1 = Column("a", [-1, 0, 1, None])
        >>> column1.transform(lambda cell: cell.math.sign())
        +------+
        |    a |
        |  --- |
        |  i64 |
        +======+
        |   -1 |
        |    0 |
        |    1 |
        | null |
        +------+

        >>> column2 = Column("a", [-1.0, -0.0, +0.0, 1.0, None])
        >>> column2.transform(lambda cell: cell.math.sign())
        +----------+
        |        a |
        |      --- |
        |      f64 |
        +==========+
        | -1.00000 |
        | -0.00000 |
        |  0.00000 |
        |  1.00000 |
        |     null |
        +----------+
        """

    @abstractmethod
    def sin(self) -> Cell:
        """
        Get the sine.

        Returns
        -------
        cell:
            The sine.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [0, math.pi / 2, math.pi, 3 * math.pi / 2, None])
        >>> column.transform(lambda cell: cell.math.sin())
        +----------+
        |        a |
        |      --- |
        |      f64 |
        +==========+
        |  0.00000 |
        |  1.00000 |
        |  0.00000 |
        | -1.00000 |
        |     null |
        +----------+
        """

    @abstractmethod
    def sinh(self) -> Cell:
        """
        Get the hyperbolic sine.

        Returns
        -------
        cell:
            The hyperbolic sine.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.sinh())
        +----------+
        |        a |
        |      --- |
        |      f64 |
        +==========+
        | -1.17520 |
        |  0.00000 |
        |  1.17520 |
        |     null |
        +----------+
        """

    @abstractmethod
    def sqrt(self) -> Cell:
        """
        Get the square root.

        Returns
        -------
        cell:
            The square root.

        Examples
        --------
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [1, 4, None])
        >>> column.transform(lambda cell: cell.math.sqrt())
        +---------+
        |       a |
        |     --- |
        |     f64 |
        +=========+
        | 1.00000 |
        | 2.00000 |
        |    null |
        +---------+
        """

    @abstractmethod
    def tan(self) -> Cell:
        """
        Get the tangent.

        Returns
        -------
        cell:
            The tangent.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [0, math.pi / 4, 3 * math.pi / 4, None])
        >>> column.transform(lambda cell: cell.math.tan())
        +----------+
        |        a |
        |      --- |
        |      f64 |
        +==========+
        |  0.00000 |
        |  1.00000 |
        | -1.00000 |
        |     null |
        +----------+
        """

    @abstractmethod
    def tanh(self) -> Cell:
        """
        Get the hyperbolic tangent.

        Returns
        -------
        cell:
            The hyperbolic tangent.

        Examples
        --------
        >>> import math
        >>> from safeds.data.tabular.containers import Column
        >>> column = Column("a", [-1, 0, 1, None])
        >>> column.transform(lambda cell: cell.math.tanh())
        +----------+
        |        a |
        |      --- |
        |      f64 |
        +==========+
        | -0.76159 |
        |  0.00000 |
        |  0.76159 |
        |     null |
        +----------+
        """

abs

Get the absolute value.

Returns:

Name Type Description
cell Cell

The absolute value.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [1, -2, None])
>>> column.transform(lambda cell: cell.math.abs())
+------+
|    a |
|  --- |
|  i64 |
+======+
|    1 |
|    2 |
| null |
+------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def abs(self) -> Cell:
    """
    Get the absolute value.

    Returns
    -------
    cell:
        The absolute value.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [1, -2, None])
    >>> column.transform(lambda cell: cell.math.abs())
    +------+
    |    a |
    |  --- |
    |  i64 |
    +======+
    |    1 |
    |    2 |
    | null |
    +------+
    """

acos

Get the inverse cosine.

Returns:

Name Type Description
cell Cell

The inverse cosine.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.acos())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 3.14159 |
| 1.57080 |
| 0.00000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def acos(self) -> Cell:
    """
    Get the inverse cosine.

    Returns
    -------
    cell:
        The inverse cosine.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.acos())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 3.14159 |
    | 1.57080 |
    | 0.00000 |
    |    null |
    +---------+
    """

acosh

Get the inverse hyperbolic cosine.

Returns:

Name Type Description
cell Cell

The inverse hyperbolic cosine.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.acosh())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
|     NaN |
|     NaN |
| 0.00000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def acosh(self) -> Cell:
    """
    Get the inverse hyperbolic cosine.

    Returns
    -------
    cell:
        The inverse hyperbolic cosine.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.acosh())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    |     NaN |
    |     NaN |
    | 0.00000 |
    |    null |
    +---------+
    """

asin

Get the inverse sine.

Returns:

Name Type Description
cell Cell

The inverse sine.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.asin())
+----------+
|        a |
|      --- |
|      f64 |
+==========+
| -1.57080 |
|  0.00000 |
|  1.57080 |
|     null |
+----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def asin(self) -> Cell:
    """
    Get the inverse sine.

    Returns
    -------
    cell:
        The inverse sine.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.asin())
    +----------+
    |        a |
    |      --- |
    |      f64 |
    +==========+
    | -1.57080 |
    |  0.00000 |
    |  1.57080 |
    |     null |
    +----------+
    """

asinh

Get the inverse hyperbolic sine.

Returns:

Name Type Description
cell Cell

The inverse hyperbolic sine.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.asinh())
+----------+
|        a |
|      --- |
|      f64 |
+==========+
| -0.88137 |
|  0.00000 |
|  0.88137 |
|     null |
+----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def asinh(self) -> Cell:
    """
    Get the inverse hyperbolic sine.

    Returns
    -------
    cell:
        The inverse hyperbolic sine.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.asinh())
    +----------+
    |        a |
    |      --- |
    |      f64 |
    +==========+
    | -0.88137 |
    |  0.00000 |
    |  0.88137 |
    |     null |
    +----------+
    """

atan

Get the inverse tangent.

Returns:

Name Type Description
cell Cell

The inverse tangent.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.atan())
+----------+
|        a |
|      --- |
|      f64 |
+==========+
| -0.78540 |
|  0.00000 |
|  0.78540 |
|     null |
+----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def atan(self) -> Cell:
    """
    Get the inverse tangent.

    Returns
    -------
    cell:
        The inverse tangent.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.atan())
    +----------+
    |        a |
    |      --- |
    |      f64 |
    +==========+
    | -0.78540 |
    |  0.00000 |
    |  0.78540 |
    |     null |
    +----------+
    """

atanh

Get the inverse hyperbolic tangent.

Returns:

Name Type Description
cell Cell

The inverse hyperbolic tangent.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.atanh())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
|    -inf |
| 0.00000 |
|     inf |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def atanh(self) -> Cell:
    """
    Get the inverse hyperbolic tangent.

    Returns
    -------
    cell:
        The inverse hyperbolic tangent.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.atanh())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    |    -inf |
    | 0.00000 |
    |     inf |
    |    null |
    +---------+
    """

cbrt

Get the cube root.

Returns:

Name Type Description
cell Cell

The cube root.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [1, 8, None])
>>> column.transform(lambda cell: cell.math.cbrt())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 1.00000 |
| 2.00000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def cbrt(self) -> Cell:
    """
    Get the cube root.

    Returns
    -------
    cell:
        The cube root.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [1, 8, None])
    >>> column.transform(lambda cell: cell.math.cbrt())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 1.00000 |
    | 2.00000 |
    |    null |
    +---------+
    """

ceil

Round up to the nearest integer.

Returns:

Name Type Description
cell Cell

The rounded value.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [1.1, 3.0, None])
>>> column.transform(lambda cell: cell.math.ceil())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 2.00000 |
| 3.00000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def ceil(self) -> Cell:
    """
    Round up to the nearest integer.

    Returns
    -------
    cell:
        The rounded value.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [1.1, 3.0, None])
    >>> column.transform(lambda cell: cell.math.ceil())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 2.00000 |
    | 3.00000 |
    |    null |
    +---------+
    """

cos

Get the cosine.

Returns:

Name Type Description
cell Cell

The cosine.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [0, math.pi / 2, math.pi, 3 * math.pi / 2, None])
>>> column.transform(lambda cell: cell.math.cos())
+----------+
|        a |
|      --- |
|      f64 |
+==========+
|  1.00000 |
|  0.00000 |
| -1.00000 |
| -0.00000 |
|     null |
+----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def cos(self) -> Cell:
    """
    Get the cosine.

    Returns
    -------
    cell:
        The cosine.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [0, math.pi / 2, math.pi, 3 * math.pi / 2, None])
    >>> column.transform(lambda cell: cell.math.cos())
    +----------+
    |        a |
    |      --- |
    |      f64 |
    +==========+
    |  1.00000 |
    |  0.00000 |
    | -1.00000 |
    | -0.00000 |
    |     null |
    +----------+
    """

cosh

Get the hyperbolic cosine.

Returns:

Name Type Description
cell Cell

The hyperbolic cosine.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.cosh())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 1.54308 |
| 1.00000 |
| 1.54308 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def cosh(self) -> Cell:
    """
    Get the hyperbolic cosine.

    Returns
    -------
    cell:
        The hyperbolic cosine.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.cosh())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 1.54308 |
    | 1.00000 |
    | 1.54308 |
    |    null |
    +---------+
    """

degrees_to_radians

Convert degrees to radians.

Returns:

Name Type Description
cell Cell

The value in radians.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [0, 90, 180, 270, None])
>>> column.transform(lambda cell: cell.math.degrees_to_radians())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 0.00000 |
| 1.57080 |
| 3.14159 |
| 4.71239 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def degrees_to_radians(self) -> Cell:
    """
    Convert degrees to radians.

    Returns
    -------
    cell:
        The value in radians.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [0, 90, 180, 270, None])
    >>> column.transform(lambda cell: cell.math.degrees_to_radians())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 0.00000 |
    | 1.57080 |
    | 3.14159 |
    | 4.71239 |
    |    null |
    +---------+
    """

exp

Get the exponential.

Returns:

Name Type Description
cell Cell

The exponential.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.exp())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 0.36788 |
| 1.00000 |
| 2.71828 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def exp(self) -> Cell:
    """
    Get the exponential.

    Returns
    -------
    cell:
        The exponential.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.exp())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 0.36788 |
    | 1.00000 |
    | 2.71828 |
    |    null |
    +---------+
    """

floor

Round down to the nearest integer.

Returns:

Name Type Description
cell Cell

The rounded value.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [1.1, 3.0, None])
>>> column.transform(lambda cell: cell.math.floor())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 1.00000 |
| 3.00000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def floor(self) -> Cell:
    """
    Round down to the nearest integer.

    Returns
    -------
    cell:
        The rounded value.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [1.1, 3.0, None])
    >>> column.transform(lambda cell: cell.math.floor())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 1.00000 |
    | 3.00000 |
    |    null |
    +---------+
    """

ln

Get the natural logarithm.

Returns:

Name Type Description
cell Cell

The natural logarithm.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [0, 1, math.e, None])
>>> column.transform(lambda cell: cell.math.ln())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
|    -inf |
| 0.00000 |
| 1.00000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def ln(self) -> Cell:
    """
    Get the natural logarithm.

    Returns
    -------
    cell:
        The natural logarithm.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [0, 1, math.e, None])
    >>> column.transform(lambda cell: cell.math.ln())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    |    -inf |
    | 0.00000 |
    | 1.00000 |
    |    null |
    +---------+
    """

log

Get the logarithm to the specified base.

Parameters:

Name Type Description Default
base float

The base of the logarithm. Must be positive and not equal to 1.

required

Returns:

Name Type Description
cell Cell

The logarithm.

Raises:

Type Description
ValueError

If the base is less than or equal to 0 or equal to 1.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column1 = Column("a", [0, 1, math.e, None])
>>> column1.transform(lambda cell: cell.math.log(math.e))
+---------+
|       a |
|     --- |
|     f64 |
+=========+
|    -inf |
| 0.00000 |
| 1.00000 |
|    null |
+---------+
>>> column2 = Column("a", [0, 1, 10, None])
>>> column2.transform(lambda cell: cell.math.log(10))
+---------+
|       a |
|     --- |
|     f64 |
+=========+
|    -inf |
| 0.00000 |
| 1.00000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def log(self, base: float) -> Cell:
    """
    Get the logarithm to the specified base.

    Parameters
    ----------
    base:
        The base of the logarithm. Must be positive and not equal to 1.

    Returns
    -------
    cell:
        The logarithm.

    Raises
    ------
    ValueError
        If the base is less than or equal to 0 or equal to 1.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column1 = Column("a", [0, 1, math.e, None])
    >>> column1.transform(lambda cell: cell.math.log(math.e))
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    |    -inf |
    | 0.00000 |
    | 1.00000 |
    |    null |
    +---------+

    >>> column2 = Column("a", [0, 1, 10, None])
    >>> column2.transform(lambda cell: cell.math.log(10))
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    |    -inf |
    | 0.00000 |
    | 1.00000 |
    |    null |
    +---------+
    """

log10

Get the common logarithm (base 10).

Returns:

Name Type Description
cell Cell

The common logarithm.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [0, 1, 10, None])
>>> column.transform(lambda cell: cell.math.log10())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
|    -inf |
| 0.00000 |
| 1.00000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def log10(self) -> Cell:
    """
    Get the common logarithm (base 10).

    Returns
    -------
    cell:
        The common logarithm.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [0, 1, 10, None])
    >>> column.transform(lambda cell: cell.math.log10())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    |    -inf |
    | 0.00000 |
    | 1.00000 |
    |    null |
    +---------+
    """

radians_to_degrees

Convert radians to degrees.

Returns:

Name Type Description
cell Cell

The value in degrees.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [0, math.pi / 2, math.pi, 3 * math.pi / 2, None])
>>> column.transform(lambda cell: cell.math.radians_to_degrees())
+-----------+
|         a |
|       --- |
|       f64 |
+===========+
|   0.00000 |
|  90.00000 |
| 180.00000 |
| 270.00000 |
|      null |
+-----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def radians_to_degrees(self) -> Cell:
    """
    Convert radians to degrees.

    Returns
    -------
    cell:
        The value in degrees.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [0, math.pi / 2, math.pi, 3 * math.pi / 2, None])
    >>> column.transform(lambda cell: cell.math.radians_to_degrees())
    +-----------+
    |         a |
    |       --- |
    |       f64 |
    +===========+
    |   0.00000 |
    |  90.00000 |
    | 180.00000 |
    | 270.00000 |
    |      null |
    +-----------+
    """

round_to_decimal_places

Round to the specified number of decimal places.

Parameters:

Name Type Description Default
decimal_places int

The number of decimal places to round to. Must be greater than or equal to 0.

required

Returns:

Name Type Description
cell Cell

The rounded value.

Raises:

Type Description
OutOfBoundsError

If decimal_places is less than 0.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [0.999, 1.123, 3.456, None])
>>> column.transform(lambda cell: cell.math.round_to_decimal_places(0))
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 1.00000 |
| 1.00000 |
| 3.00000 |
|    null |
+---------+
>>> column.transform(lambda cell: cell.math.round_to_decimal_places(2))
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 1.00000 |
| 1.12000 |
| 3.46000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def round_to_decimal_places(self, decimal_places: int) -> Cell:
    """
    Round to the specified number of decimal places.

    Parameters
    ----------
    decimal_places:
        The number of decimal places to round to. Must be greater than or equal to 0.

    Returns
    -------
    cell:
        The rounded value.

    Raises
    ------
    OutOfBoundsError
        If `decimal_places` is less than 0.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [0.999, 1.123, 3.456, None])
    >>> column.transform(lambda cell: cell.math.round_to_decimal_places(0))
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 1.00000 |
    | 1.00000 |
    | 3.00000 |
    |    null |
    +---------+

    >>> column.transform(lambda cell: cell.math.round_to_decimal_places(2))
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 1.00000 |
    | 1.12000 |
    | 3.46000 |
    |    null |
    +---------+
    """

round_to_significant_figures

Round to the specified number of significant figures.

Parameters:

Name Type Description Default
significant_figures int

The number of significant figures to round to. Must be greater than or equal to 1.

required

Returns:

Name Type Description
cell Cell

The rounded value.

Raises:

Type Description
OutOfBoundsError

If significant_figures is less than 1.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [0.999, 1.123, 3.456, None])
>>> column.transform(lambda cell: cell.math.round_to_significant_figures(1))
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 1.00000 |
| 1.00000 |
| 3.00000 |
|    null |
+---------+
>>> column.transform(lambda cell: cell.math.round_to_significant_figures(2))
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 1.00000 |
| 1.10000 |
| 3.50000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def round_to_significant_figures(self, significant_figures: int) -> Cell:
    """
    Round to the specified number of significant figures.

    Parameters
    ----------
    significant_figures:
        The number of significant figures to round to. Must be greater than or equal to 1.

    Returns
    -------
    cell:
        The rounded value.

    Raises
    ------
    OutOfBoundsError
        If `significant_figures` is less than 1.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [0.999, 1.123, 3.456, None])
    >>> column.transform(lambda cell: cell.math.round_to_significant_figures(1))
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 1.00000 |
    | 1.00000 |
    | 3.00000 |
    |    null |
    +---------+

    >>> column.transform(lambda cell: cell.math.round_to_significant_figures(2))
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 1.00000 |
    | 1.10000 |
    | 3.50000 |
    |    null |
    +---------+
    """

sign

Get the sign (-1 if negative, 0 for zero, and 1 if positive).

Note that IEEE 754 defines a negative zero (-0) and a positive zero (+0). This method return a negative zero for -0 and a positive zero for +0.

Returns:

Name Type Description
cell Cell

The sign.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column1 = Column("a", [-1, 0, 1, None])
>>> column1.transform(lambda cell: cell.math.sign())
+------+
|    a |
|  --- |
|  i64 |
+======+
|   -1 |
|    0 |
|    1 |
| null |
+------+
>>> column2 = Column("a", [-1.0, -0.0, +0.0, 1.0, None])
>>> column2.transform(lambda cell: cell.math.sign())
+----------+
|        a |
|      --- |
|      f64 |
+==========+
| -1.00000 |
| -0.00000 |
|  0.00000 |
|  1.00000 |
|     null |
+----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def sign(self) -> Cell:
    """
    Get the sign (-1 if negative, 0 for zero, and 1 if positive).

    Note that IEEE 754 defines a negative zero (-0) and a positive zero (+0). This method return a negative zero
    for -0 and a positive zero for +0.

    Returns
    -------
    cell:
        The sign.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column1 = Column("a", [-1, 0, 1, None])
    >>> column1.transform(lambda cell: cell.math.sign())
    +------+
    |    a |
    |  --- |
    |  i64 |
    +======+
    |   -1 |
    |    0 |
    |    1 |
    | null |
    +------+

    >>> column2 = Column("a", [-1.0, -0.0, +0.0, 1.0, None])
    >>> column2.transform(lambda cell: cell.math.sign())
    +----------+
    |        a |
    |      --- |
    |      f64 |
    +==========+
    | -1.00000 |
    | -0.00000 |
    |  0.00000 |
    |  1.00000 |
    |     null |
    +----------+
    """

sin

Get the sine.

Returns:

Name Type Description
cell Cell

The sine.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [0, math.pi / 2, math.pi, 3 * math.pi / 2, None])
>>> column.transform(lambda cell: cell.math.sin())
+----------+
|        a |
|      --- |
|      f64 |
+==========+
|  0.00000 |
|  1.00000 |
|  0.00000 |
| -1.00000 |
|     null |
+----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def sin(self) -> Cell:
    """
    Get the sine.

    Returns
    -------
    cell:
        The sine.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [0, math.pi / 2, math.pi, 3 * math.pi / 2, None])
    >>> column.transform(lambda cell: cell.math.sin())
    +----------+
    |        a |
    |      --- |
    |      f64 |
    +==========+
    |  0.00000 |
    |  1.00000 |
    |  0.00000 |
    | -1.00000 |
    |     null |
    +----------+
    """

sinh

Get the hyperbolic sine.

Returns:

Name Type Description
cell Cell

The hyperbolic sine.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.sinh())
+----------+
|        a |
|      --- |
|      f64 |
+==========+
| -1.17520 |
|  0.00000 |
|  1.17520 |
|     null |
+----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def sinh(self) -> Cell:
    """
    Get the hyperbolic sine.

    Returns
    -------
    cell:
        The hyperbolic sine.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.sinh())
    +----------+
    |        a |
    |      --- |
    |      f64 |
    +==========+
    | -1.17520 |
    |  0.00000 |
    |  1.17520 |
    |     null |
    +----------+
    """

sqrt

Get the square root.

Returns:

Name Type Description
cell Cell

The square root.

Examples:

>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [1, 4, None])
>>> column.transform(lambda cell: cell.math.sqrt())
+---------+
|       a |
|     --- |
|     f64 |
+=========+
| 1.00000 |
| 2.00000 |
|    null |
+---------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def sqrt(self) -> Cell:
    """
    Get the square root.

    Returns
    -------
    cell:
        The square root.

    Examples
    --------
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [1, 4, None])
    >>> column.transform(lambda cell: cell.math.sqrt())
    +---------+
    |       a |
    |     --- |
    |     f64 |
    +=========+
    | 1.00000 |
    | 2.00000 |
    |    null |
    +---------+
    """

tan

Get the tangent.

Returns:

Name Type Description
cell Cell

The tangent.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [0, math.pi / 4, 3 * math.pi / 4, None])
>>> column.transform(lambda cell: cell.math.tan())
+----------+
|        a |
|      --- |
|      f64 |
+==========+
|  0.00000 |
|  1.00000 |
| -1.00000 |
|     null |
+----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def tan(self) -> Cell:
    """
    Get the tangent.

    Returns
    -------
    cell:
        The tangent.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [0, math.pi / 4, 3 * math.pi / 4, None])
    >>> column.transform(lambda cell: cell.math.tan())
    +----------+
    |        a |
    |      --- |
    |      f64 |
    +==========+
    |  0.00000 |
    |  1.00000 |
    | -1.00000 |
    |     null |
    +----------+
    """

tanh

Get the hyperbolic tangent.

Returns:

Name Type Description
cell Cell

The hyperbolic tangent.

Examples:

>>> import math
>>> from safeds.data.tabular.containers import Column
>>> column = Column("a", [-1, 0, 1, None])
>>> column.transform(lambda cell: cell.math.tanh())
+----------+
|        a |
|      --- |
|      f64 |
+==========+
| -0.76159 |
|  0.00000 |
|  0.76159 |
|     null |
+----------+
Source code in src/safeds/data/tabular/query/_math_operations.py
@abstractmethod
def tanh(self) -> Cell:
    """
    Get the hyperbolic tangent.

    Returns
    -------
    cell:
        The hyperbolic tangent.

    Examples
    --------
    >>> import math
    >>> from safeds.data.tabular.containers import Column
    >>> column = Column("a", [-1, 0, 1, None])
    >>> column.transform(lambda cell: cell.math.tanh())
    +----------+
    |        a |
    |      --- |
    |      f64 |
    +==========+
    | -0.76159 |
    |  0.00000 |
    |  0.76159 |
    |     null |
    +----------+
    """