This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package Library4997.MasqResources.MasqMath; | |
| import Library4997.MasqResources.MasqHelpers.MasqHardware; | |
| /** | |
| * Created by Archishmaan Peyyety on 8/13/18. | |
| * Project: MasqLib | |
| */ | |
| public class MasqVector implements MasqHardware { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include <cstdint> | |
| #include <string> | |
| #include <array> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <sstream> | |
| #include "iostream" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax on | |
| set number | |
| filetype plugin indent on | |
| " show existing tab with 4 spaces width | |
| set tabstop=4 | |
| " when indenting with '>', use 4 spaces width | |
| set shiftwidth=4 | |
| " On pressing tab, insert 4 spaces | |
| set expandtab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def compute_tax(income): | |
| tax = 0 | |
| def tax_income(rate, top_bound): | |
| nonlocal income, tax | |
| removed = income - max(income - top_bound, 0) | |
| # print(removed, '\ttaxed at', rate, '\tfor', removed * rate) | |
| tax += removed * rate | |
| income -= removed | |
| tax_income(0.1, 10_275) |
OlderNewer