{"id":19500241,"url":"https://github.com/joelniemela/calculator","last_synced_at":"2026-06-19T09:32:24.657Z","repository":{"id":45823453,"uuid":"514475271","full_name":"JoelNiemela/Calculator","owner":"JoelNiemela","description":"An advanced calculator app written in JavaScript","archived":false,"fork":false,"pushed_at":"2022-09-08T05:16:02.000Z","size":74,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T21:23:55.607Z","etag":null,"topics":["calculator","calculator-app","javascript","programmable","unicode","vanilla-javascript","webapp"],"latest_commit_sha":null,"homepage":"https://JoelNiemela.github.io/Calculator","language":"JavaScript","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/JoelNiemela.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}},"created_at":"2022-07-16T04:20:31.000Z","updated_at":"2022-09-17T23:53:59.000Z","dependencies_parsed_at":"2022-09-07T01:53:40.742Z","dependency_job_id":null,"html_url":"https://github.com/JoelNiemela/Calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JoelNiemela/Calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoelNiemela%2FCalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoelNiemela%2FCalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoelNiemela%2FCalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoelNiemela%2FCalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoelNiemela","download_url":"https://codeload.github.com/JoelNiemela/Calculator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoelNiemela%2FCalculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34526065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","calculator-app","javascript","programmable","unicode","vanilla-javascript","webapp"],"created_at":"2024-11-10T22:07:58.777Z","updated_at":"2026-06-19T09:32:24.618Z","avatar_url":"https://github.com/JoelNiemela.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eCalculator\u003c/h1\u003e\r\n\r\n\u003cp align=\"center\" style=\"font-weight: bold;\"\u003eAn advanced calculator app written in JavaScript\u003c/p\u003e\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg alt=\"Calculator\" src=\"docs/Calculator.png\" width=\"50%\"\u003e\r\n\u003c/p\u003e\r\n\r\n## Live Example\r\n[JoelNiemela.github.io/Calculator](https://JoelNiemela.github.io/Calculator)\r\n\r\n## Features\r\n\r\n### Variables\r\nSupports assigning custom variables:\r\n```ruby\r\nx : 40\r\ny : 2\r\nx + y\r\n42\r\n```\r\n\r\n### Lambdas\r\nDefine and reuse your own custom lambda functions:\r\n```ruby\r\nfn : λx.x+2\r\nfn(5)\r\n7\r\n```\r\n\r\nOr use lambda literals directly (IIFE):\r\n```ruby\r\n(λx.x+2)(3)\r\n5\r\n```\r\n\r\n### Unicode support\r\n```ruby\r\n√(π)\r\n1.7724538509055743\r\n```\r\n\r\n### Predefined mathematical constants\r\n```ruby\r\ne : 2.71828182846\r\nπ : 3.14159265359\r\n```\r\n\r\n### Predefined functions\r\n```ruby\r\nsin\r\ncos\r\ntan\r\nln\r\nlog\r\nsqrt\r\ncbrt\r\n```\r\n#### Unicode aliases\r\n```ruby\r\n√ : sqrt\r\n∛ : cbrt\r\n```\r\n\r\n### Operators\r\n```ruby\r\nx + y\r\nx - y\r\nx × y\r\nx ÷ y\r\nx ^ y\r\n```\r\n\r\n### Factorial function syntax\r\n```ruby\r\nx!\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelniemela%2Fcalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoelniemela%2Fcalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelniemela%2Fcalculator/lists"}