{"id":18239919,"url":"https://github.com/c-not-around/iron-calc","last_synced_at":"2025-04-08T16:21:00.210Z","repository":{"id":260885870,"uuid":"882626810","full_name":"c-not-around/iron-calc","owner":"c-not-around","description":"A simple engineering calculator with support for complex numbers and various number systems","archived":false,"fork":false,"pushed_at":"2024-11-03T10:37:07.000Z","size":1621,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T12:53:23.414Z","etag":null,"topics":["calculator","complex-number","csharp","iron-python","system-value"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-not-around.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-03T10:24:16.000Z","updated_at":"2024-11-03T10:37:10.000Z","dependencies_parsed_at":"2024-11-03T11:31:19.489Z","dependency_job_id":null,"html_url":"https://github.com/c-not-around/iron-calc","commit_stats":null,"previous_names":["c-not-around/iron-calc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-not-around%2Firon-calc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-not-around%2Firon-calc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-not-around%2Firon-calc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-not-around%2Firon-calc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-not-around","download_url":"https://codeload.github.com/c-not-around/iron-calc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247877963,"owners_count":21011158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calculator","complex-number","csharp","iron-python","system-value"],"created_at":"2024-11-05T04:04:15.499Z","updated_at":"2025-04-08T16:21:00.194Z","avatar_url":"https://github.com/c-not-around.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IronCalc\n\nA simple engineering calculator with support for complex numbers and various number systems.\n\n![screen1](https://github.com/user-attachments/assets/091c70c2-bc45-422b-a027-9b50a02ae1f6)\n![screen2](https://github.com/user-attachments/assets/f4f67a7f-6a4c-4776-955d-cc079386e087)\n![screen3](https://github.com/user-attachments/assets/6bd660a0-35c8-4290-a390-b5150bd993df)\n![screen4](https://github.com/user-attachments/assets/30914d63-5e5d-4cd1-bca0-dfa2dc0334ec)\n\n## Documentation\n\nThe expression value calculation is implemented using IronPython, which explains the following features:\n  * The expression is not limited to one mathematical operation `2+3*4*(5+6*7)-sqrt(2)`\n  * If at least one operand is a real number, the result of the expression will be real `2/3=0` and `2./3=0.666666666667`\n  * Special variable `_` - stores the result of the last calculation\n  * The implementation of mathematical functions is in the `calc.py` file and can be supplemented or changed as needed.\n\nTabs:\n* Regular\n  | Operator               | Example                                                                |\n  |------------------------|------------------------------------------------------------------------|\n  | addition               | `1+2`                                                                  |\n  | subtraction            | `1-2`                                                                  |\n  | multiplication         | `1×2`, `1*2`                                                           |\n  | division               | `11/2=5`, `11./2=5.5`                                                  |\n  | integer division       | `11//2=5`, `11.//2=5.0`                                                |\n  | modulo                 | `11%2=1`, `11.%2=1.0`                                                  |\n  | square `x²`            | `11²`, `11^2`, `11××2`, `11**2`, `pow(11,2)`                           |\n  | square root `√x`       | `sqrt(10)`, `10^.5`, `pow(10,.5)`                                      |\n  | power `xⁿ`             | `2^3`, `2××3`, `2**3`, `pow(2,3)`                                      |\n  | root `ⁿ√x`             | `root(8,3)`, `8^(1./3)`, `pow(8,1./3)`                                 |\n  | exponent `℮ˣ`          | `exp(2)`, `℮^2`, `pow(℮,2)`                                            |\n  | natural logarithm `ln` | `ln(5)`, `log(5,℮)`                                                    |\n  | common logarithm `lg`  | `lg(5)`, `log(5,10)`                                                   |\n  | logarithm `log`        | `log(8,2)`                                                             |\n  | real part `re`         | `re(1)=1`, `re(1+j)=1.0`, `re(j)=0.0`                                  |\n  | imaginary part `im`    | `im(1)=0.0`, `im(1+j)=1.0`, `im(j)=1.0`                                |\n  | argument `arg`         | `arg(1)=0.0`, `arg(-1)=π`, `arg(1+j)=π/4`, `arg(j)=π/2`, `arg(-j)=-π/2`|\n  | imaginary unit `j`     | `1+j`, `2+3j`, `2+3×j`, `2+3*j`                                        |\n* Trigonometry\n   - Trigonometric functions `sin`, `cos`, `tan`, `csc`, `sec`, `cot`\n   - Inverse trigonometric functions `asin`, `acos`, `atan`, `acsc`, `asec`, `acot`\n   - Hyperbolic functions `sh`, `ch`, `th`, `csch`, `sech`, `cth`\n   - Inverse hyperbolic functions `ash`, `ach`, `ath`, `acsch`, `asech`, `acth`\n   - Angle measure conversion functions\n     | Description                   | Sysntax |\n     |-------------------------------|---------|\n     | radians to degrees  `rad→deg` | `rtd()` |\n     | radians to gradians `rad→grd` | `rtg()` |\n     | degrees to radians  `deg→rad` | `dtr()` |\n     | degrees to gradians `deg→grd` | `dtg()` |\n     | gradians to radians `grd→rad` | `gtr()` |\n     | gradians to degrees `grd→deg` | `gtd()` |\n* Constants\n   - basic math constatnts `π`, `℮`\n   - submultipliers\n     | Description | Prefix | Meaning           |\n     |-------------|--------|-------------------|\n     | milli       | `m`    | `10^-3`, `1e-3`   |\n     | micro       | `u`    | `10^-6`, `1e-6`   |\n     | nano        | `n`    | `10^-9`, `1e-9`   |\n     | pico        | `p`    | `10^-12`, `1e-12` |\n     | femto       | `f`    | `10^-15`, `1e-15` |\n   - multiple prefixes\n     | Description | Prefix | Meaning         |\n     |-------------|--------|-----------------|\n     | kilo        | `k`    | `10^3`, `1e3`   |\n     | mega        | `M`    | `10^6`, `1e6`   |\n     | giga        | `G`    | `10^9`, `1e9`   |\n     | tera        | `T`    | `10^12`, `1e12` |\n     | peta        | `P`    | `10^15`, `1e15` |\n* SystemValue\n   - four fixed bases `bin`, `oct`, `dec`, `hex`\n   - arbitrary base from 2 to 16\n   - four variants of integer bit depth `8`, `16`, `32`, `64`\n   - bitwise operations\n     | Description                        | Sysntax |\n     |------------------------------------|---------|\n     | convertion to two`s complenet code | `neg`   |\n     | bitwise not                        | `~`     |\n     | bitwise or                         | `\\|`    |\n     | bitwise xor                        | `^`     |\n     | bitwise and                        | `\u0026`     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-not-around%2Firon-calc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-not-around%2Firon-calc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-not-around%2Firon-calc/lists"}