-
-
Notifications
You must be signed in to change notification settings - Fork 51
feat: implement deret geometri #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
math/deret_geometri.cpp
Outdated
| */ | ||
| template <std::input_iterator It> | ||
| requires(std::integral<std::iter_value_t<It>>) | ||
| std::string rumus_suku_KeN(It first,It last){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| std::string rumus_suku_KeN(It first,It last){ | |
| std::string rumus_suku_KeN(It first,It last) { |
math/deret_geometri.cpp
Outdated
| return rumus_suku_KeN(R.begin(),R.end()); | ||
| } | ||
| int main(){ | ||
| using namespace std; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using namespace std; ?
| } | ||
| /** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tidak ada jarak
slowy07
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, terima kasih atas kontribusinya @yusuf601
|
terima kasih atas kontribusinya @yusuf601! |
Deskripsi (Description)
Menambahkan source code untuk mensimulasikan
deret geometri.Program ini menyediakan implementasi komprehensif untuk melakukan berbagai operasi terkait deret geometri, termasuk:
Seluruh implementasi dirancang dengan menggunakan konsep
three pair, yaitu memusatkan logika utama pada fungsi yang menerima input iterator.Dengan pendekatan ini, versi overload lain seperti yang menerima
std::initializer_listataustd::ranges::input_rangecukup melakukan delegasi (memanggil) fungsi utama tersebut tanpa perlu duplikasi logika.Checklist:
Umum:
Contributor Requirements (Syarat Kontributor) dan Lain-Lain:
Environment
Saya menggunakan (I'm using):
OS=Linuxg++=15.2.1Link Issues
Issues : #