{"id":18899517,"url":"https://github.com/bartwel27/cppmformulas","last_synced_at":"2025-09-14T16:43:42.129Z","repository":{"id":230968959,"uuid":"780604301","full_name":"Bartwel27/cppMFormulas","owner":"Bartwel27","description":"A cpp file program, filled with math formulas defined in cpp language Function","archived":false,"fork":false,"pushed_at":"2024-04-05T12:07:08.000Z","size":114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T19:41:03.967Z","etag":null,"topics":["cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bartwel27.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-01T20:20:51.000Z","updated_at":"2024-04-05T11:23:57.000Z","dependencies_parsed_at":"2024-04-05T12:30:54.883Z","dependency_job_id":"7da44407-7ce4-4816-9d75-c40c998fa8c9","html_url":"https://github.com/Bartwel27/cppMFormulas","commit_stats":null,"previous_names":["bartwel27/cppmformulas"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bartwel27/cppMFormulas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bartwel27%2FcppMFormulas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bartwel27%2FcppMFormulas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bartwel27%2FcppMFormulas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bartwel27%2FcppMFormulas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bartwel27","download_url":"https://codeload.github.com/Bartwel27/cppMFormulas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bartwel27%2FcppMFormulas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275135768,"owners_count":25411706,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"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":["cpp"],"created_at":"2024-11-08T08:46:45.036Z","updated_at":"2025-09-14T16:43:42.088Z","avatar_url":"https://github.com/Bartwel27.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cppMFormulas\nA cpp program filled with math formulas defined in functions and outputs returnable values, parameters are used to find a value of a formula, if a parameter has ```null``` value then it will find the ```null``` param given.\n\n![image](https://articles.outlier.org/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fkj4bmrik9d6o%2F3Rn6lXm78lGNHpOBTl2K4r%2F9fcf9eaaaf131575f56bd6a8ba29dbdc%2FNormal_Distribution_05.png\u0026w=3840\u0026q=75)\n\n## 2D shapes\n**_Square function_**\n\n*Formula:*\n\u003e A = S²\n\nThe square function is a function that calculates and finds the area of a square and is measured in squre units ```m²```, the function takes 2 parametres the first param is ```A``` and last param is ```s²``` that stands for sides of a surface of a square, When finding the area as the first param please use the NULL value.\n```\nsquare(null, 3.20); \n```\n\n**_Rectangle function_**\n\n*formula:*\n\u003e A = bh\n\nThe rectangle function is used to find the area of a rectangle, it takes 3 parametres, the first param is ```A```, second param ```b``` and third param is ```h```. if two params are given values, the function will use those values to find the other parameter.\n``` \nrectangle(null, 36, 2);\n```\n\n\n**_Parallelogram function_**\n\n*formula:*\n\u003e A = bh\n\nThe parallelogram function is much similar to the rectangle function as they both accept 3 parameters and uses them to find the area of a rectangle\n```\nparallelogram(null, 2, 2);\n```\n\n**_trapezoid function_**\n\n*formula:*\n\u003e A = (a+b)h/2\n\nThe trapezoid function is a function that calculates the area of a trapezoid, basically is a quadrilateral that has at least one pair of parallel sides. The parallel sides are called the bases of the trapezoid. The trapezoid function takes 4 parameters and respectively these are ```A```, ```a```, ```b``` and ```h```.\n```\ntrapezoid(null, 2, 3, 3);\n```\n\n**_triangle function_**\n\n*formula:*\n\u003e A = 1 / 2 * bh\n\nThe triangle function calculates the area of a triangle and takes 3 parameters and respectively these params are ```A```, ```a``` and ```h```. To find the value of a parameter we use the ```null``` value.\n```\ntriangle(null , 2, 4);\n```\n\n**_circle function_**\n\n*formula:*\n\u003e A = πr²\n\nThe circle function calculates the area of a circle and accepts 2 parametres, the first and last param is ```A``` and ```r²``` respectively to find a value of a parameter we use the ```null``` value.\n```\ncircle(NULL,3);\n```\n\n**_ellipse function_**\n\n*formula:*\n\u003e A = πab\n\nThe Ellipse function calculates the area of a ellipse shape, and takes 3 parameters, the first second and third param is ```A```, ```a``` and ```b``` respectively, these paramaters can be found when we use the ```null``` value on a specific parameter.\n```\nellipes(null, 2, 2);\n```\n\n\n\n\n\n\u003e[!NOTE]\n\u003e Use ```null``` as a parameter to find its value.\n\n\u003e[!WARNING]\n\u003eDont give all parameters values of a function to avoid false return outputs, You use the null value on a parameter to find a value of a same param.\n\n\n\n### Installation\n\u003efolder\n```\ngit clone https://github.com/bartwel27/cppMFormulas/\n```\n_\u0026 include in code_\n\n```\n#include \"cppMFormulas/index.cpp\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartwel27%2Fcppmformulas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartwel27%2Fcppmformulas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartwel27%2Fcppmformulas/lists"}