Skip to content

Conversation

@Ateng-labrador
Copy link
Contributor

Deskripsi (Description)

Saya menambahkan algoritma cosinus menggunakan konsep deret taylor.Di sini saya menggunkan konsep rekrusi untuk menghitung factorial dan menghitung deret taylor hingga orde 10 agar tingkat perhitungannya tepat.

Checklist:

Umum:

  • Saya menambah algoritma terbaru.
  • Saya memperbaiki algoritma yang sudah ada.
  • Saya memperbaiki dokumentasi.
  • Saya menambah dokumentasi.

Contributor Requirements (Syarat Kontributor) dan Lain-Lain:

  • Saya sudah membaca (I have read) CONTRIBUTING dan sudah menyetujui semua syarat.
  • Saya telah menambahkan docstring yang memberikan penjelasan maksud dari kode yang saya buat.
  • Saya menggunakan bahasa Indonesia untuk memberikan penjelasan dari kode yang saya buat.

Unit Testing dan Linting:

  • pytest
  • flake8

Environment

Saya menggunakan (I'm using):

  • os = windows
  • python = py -3 -V (Windows-Python launcher)

linked issue #

math/cos.py Outdated
@@ -0,0 +1,56 @@
# Menghitung cosisnus dengan menggunakan deret taylor
# https://en.wikipedia.org/wiki/Taylor_series#Trigonometric_functions
import numpy as np
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tidak menggunakan 3rd lib

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gak boleh pake numpy maksudnya bang?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mergify mergify bot requested a review from a team October 19, 2025 23:28
@Ateng-labrador
Copy link
Contributor Author

@slowy07 clear bang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants