@@ -277,6 +277,137 @@ def linear(a: any = None, b: any = None, c: any = None, search_a: bool = False,
277
277
if isinstance (b , int ):
278
278
b = float (b )
279
279
_result = _linear_base_c (a = a , b = b )
280
+ if return_int :
281
+ _result = int (_result )
282
+ elif return_float :
283
+ _result = float (_result )
284
+ if return_string :
285
+ _result = str (_result )
286
+ return _result
287
+
288
+ def sin (a : any , return_int : bool = False , return_string : bool = False ):
289
+ """
290
+ Create the Sinus of a Number.
291
+ """
292
+ from .highpymath import sin as _sin
293
+ return_float = True
294
+ if return_int :
295
+ return_float = False
296
+ if not isinstance (a , (int , float )):
297
+ raise MathValueError ("a must be a number" )
298
+ if isinstance (a , int ):
299
+ a = float (a )
300
+ _result = _sin (a = a )
301
+ if return_int :
302
+ _result = int (_result )
303
+ elif return_float :
304
+ _result = float (_result )
305
+ if return_string :
306
+ _result = str (_result )
307
+ return _result
308
+
309
+ def cos (a : any , return_int : bool = False , return_string : bool = False ):
310
+ """
311
+ Create the Cosinus of a Number.
312
+ """
313
+ from .highpymath import cos as _cos
314
+ return_float = True
315
+ if return_int :
316
+ return_float = False
317
+ if not isinstance (a , (int , float )):
318
+ raise MathValueError ("a must be a number" )
319
+ if isinstance (a , int ):
320
+ a = float (a )
321
+ _result = _cos (a = a )
322
+ if return_int :
323
+ _result = int (_result )
324
+ elif return_float :
325
+ _result = float (_result )
326
+ if return_string :
327
+ _result = str (_result )
328
+ return _result
329
+
330
+ def tan (a : any , return_int : bool = False , return_string : bool = False ):
331
+ """
332
+ Create the Tanus of a Number.
333
+ """
334
+ from .highpymath import tan as _tan
335
+ return_float = True
336
+ if return_int :
337
+ return_float = False
338
+ if not isinstance (a , (int , float )):
339
+ raise MathValueError ("a must be a number" )
340
+ if isinstance (a , int ):
341
+ a = float (a )
342
+ _result = _tan (a = a )
343
+ if return_int :
344
+ _result = int (_result )
345
+ elif return_float :
346
+ _result = float (_result )
347
+ if return_string :
348
+ _result = str (_result )
349
+ return _result
350
+
351
+ def asin (a : any , return_int : bool = False , return_string : bool = False ):
352
+ """
353
+ Create the Arcus Sinus of a Number.
354
+ """
355
+ from .highpymath import asin as _asin
356
+ return_float = True
357
+ if return_int :
358
+ return_float = False
359
+ if not isinstance (a , (int , float )):
360
+ raise MathValueError ("a must be a number" )
361
+ if isinstance (a , int ):
362
+ a = float (a )
363
+ _result = _asin (a = a )
364
+ if return_int :
365
+ _result = int (_result )
366
+ elif return_float :
367
+ _result = float (_result )
368
+ if return_string :
369
+ _result = str (_result )
370
+ return _result
371
+
372
+ def acos (a : any , return_int : bool = False , return_string : bool = False ):
373
+ """
374
+ Create the Arcus Cosinus of a Number.
375
+ """
376
+ from .highpymath import acos as _acos
377
+ return_float = True
378
+ if return_int :
379
+ return_float = False
380
+ if not isinstance (a , (int , float )):
381
+ raise MathValueError ("a must be a number" )
382
+ if isinstance (a , int ):
383
+ a = float (a )
384
+ _result = _acos (a = a )
385
+ if return_int :
386
+ _result = int (_result )
387
+ elif return_float :
388
+ _result = float (_result )
389
+ if return_string :
390
+ _result = str (_result )
391
+ return _result
392
+
393
+ def atan (a : any , use_leibniz : bool = False , return_int : bool = False , return_string : bool = False ):
394
+ """
395
+ Create the Arcus Tanus of a Number.
396
+ """
397
+ from .highpymath import atan as _atan1
398
+ from .highpymath import arctan as _atan2
399
+ return_float = True
400
+ if return_int :
401
+ return_float = False
402
+ if use_leibniz :
403
+ _atan = _atan2
404
+ else :
405
+ _atan = _atan1
406
+ if not isinstance (a , (int , float )):
407
+ raise MathValueError ("a must be a number" )
408
+ if isinstance (a , int ):
409
+ a = float (a )
410
+ _result = _atan (a = a )
280
411
if return_int :
281
412
_result = int (_result )
282
413
elif return_float :
0 commit comments