Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.589-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.589-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.589-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.589-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.589-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.589-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.589-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.589-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.589-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.589-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.589-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.589-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.589-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.589-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.589-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.589-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.589-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.589-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.589-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.589-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.589-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2deb7fd8903b7a9ad564ec3dc0ab1ad830e03ad10f34d6d64c78cf2bdbc728ed
MD5 e6f379b17692755a03541800d86680f8
BLAKE2b-256 2b4306428146f24f970ba19da6e2be642e58f3e66331e40b730f4124d1ece1ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.589-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.589-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f93fcc647049466fa590eca9125c7e8dd329dc5772ca454c4502db7e2beae942
MD5 48bed1bfee9f63707fe2a9773478323a
BLAKE2b-256 caf67bca7f1836d085ed2d608f8eb1dc34353475fd257cc8632c74eea2dd5c74

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 772ac3d8f031d3e08035aaa4ed2e605031f7e65f353ed33d59ef686f068b23a9
MD5 fd7d8327d88257858fabfea1fee02fd9
BLAKE2b-256 53a9a57675e74064fcdddc0cced16b7a2955f0c55bda7c9ee2db3fbd1fcc4232

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7fef31eee9d3e2c50c38f5b6186116dae4d16cf8b12773f0ed8688a92306cc93
MD5 88ebc6fad98ad2946f860ef4047b3ea0
BLAKE2b-256 900c0b77c2def1dbeba64f3432240d3c955fd30f982ab85b79d1da7b43fba37e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5d33382ba4aabde37ef92890bc4dbffb4bd5456f1d6ee8dc48e4593da4fa83bc
MD5 14adc5a9187ac64d624cb80326dc36d7
BLAKE2b-256 5ae44d8a5c2ef16330737478243df896aaae4d8b61056ae47aca1b2f6032e962

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.589-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.589-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c4ee74f32260a9502238144be04210b2d3c925b996ad5dcfcb7347f71f625991
MD5 09658778f1f8396b9bdd3ec27ca6b50a
BLAKE2b-256 7ff06db8ec1cdfe21dc9a6f3e2a04ed331d7eb49a7a8808c6fc6b55d1d93263b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3cba8a92b6f90c21775e32edfeeccfeef6fb93e5495f4ff7ee70f4741b13c37
MD5 b6f5fde7e7cfaac30f53f06e470bb8b7
BLAKE2b-256 f6af77c0f1b3706180c5b31c98917e6bb69aee6c10929fa93d212d41e04dd685

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30f7942e054cb8783939d1e14cdbaf367993793028fcd7c4aa972ad3c0de19f9
MD5 f758fa45a229cd8677bbea0e0501836a
BLAKE2b-256 7646415c9ada1ad5ab60e7f318554dcd194f78aeb75695c74e93f21195568a09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b3222351a4c22a2d6685626772e9e07aae76d4d5b25c0dca459c3b077f06050d
MD5 b8c7fb6e1125b4ea31d27b8aec9d728b
BLAKE2b-256 95e49e064fc13e00ce1e20c379f5cfca14a7ad98fa30f057deb298ff2c3e7e2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.589-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.589-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6f3b85ba23f2c90e17a914a2d7e9a1ea438586f00d626e32516bb52dc6a11f7b
MD5 15bdbd43da7dac2432ab66a9912775c5
BLAKE2b-256 29b1f0b2c9223a0366293022c2dd4f1f6ded651631d76527fda95f2aaf5db0e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dabdc501439680010d7e5d84c802bca17bc0ab883a93d7bef3f57864873cf475
MD5 123daf1ae08f675d1b2d349fcba59646
BLAKE2b-256 c4fc6c6243a5ccce8e90a94b7f5fa07f7fa952214cedd2f641fa7b9a18621f27

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f3b0def375ecec80953818419f197e64fc0e3222b7c74d7b02c5e43bb1b17dc
MD5 1d568b6bcab2d458790dcfedbb5cba97
BLAKE2b-256 fec9cf1fea8c0634451f0701ebc8012c90a6d8837334713a083cc17d31158f1e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.589-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.589-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d9bac5a41ad18314f2069df99a11f5b1370c947908cef17b32b1df1a053a43e
MD5 789dec08e4a7c2e979d46fcbc867db29
BLAKE2b-256 1d9f075ffaf70f6b604d9e440db3842968e030315560d8396aab84c81eb928f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.589-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.589-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 93f727c86ebdbbc65ec3870ae82aa0945fdd066a48eaa0b8489e42de48d8f0d7
MD5 e7ad08a0e79049bb32f0ea63815512d5
BLAKE2b-256 c868dab1f82d195b80b459dcc11ba45bcba2ed21b339ec738ee031c339a2ce28

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8aedaa5fca61a39b47a422f1ece4c8f4596045de7ecba16de1f2a72d821f33b7
MD5 84406bb13cbe406e9605c80a7e9bb708
BLAKE2b-256 09d547df1921679710b59b2fe9c1b39acd84f01be5f2f4d4c1bc11f9b51fb20b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67d4507f4581adf96e693d03a25894f3675be2fb6659c25cfcd50025c5d6d10d
MD5 9906c9e356687ed7422a61abd22fb3e3
BLAKE2b-256 6b0eba127cc3bbed3468415dc4fb034c78561d932ad8bad5cd7585d96c83e146

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.589-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.589-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4c275422a0578358abae2abad7380d060e4dab354e24cda9c7d973aa630afb47
MD5 be762b0ab0d5851c6e155334e77e2c3f
BLAKE2b-256 a1c0e8be292886087105b7ebb7e54b6dc3b6fc6bc7e7eca9df37d5b7f3b4834f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.589-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.589-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 effd131f651dd460875eec54ee1cb5ced0ff8163fc73d9c89bc436df33530780
MD5 232eb344a71d9b4e8bbba6e662d6b2b2
BLAKE2b-256 bdba85603b02320d8e6b439b51c6b5fb778d3ca0cd511be471061c3f90d06f65

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c3c10cb25958d716780c631c9a13c24019609519627f59eaea1a295865a2882
MD5 e771ef7e990c0bb8537c1987c5ac6632
BLAKE2b-256 d22c3d9c3a21d3844f89306f599da7307d9982d360a699bda49a55b00741d1d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.589-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.589-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8909dc9e5e5512ce04607d0e78c17d591fdffb11063304b937f6a3b3c72ad6b3
MD5 19aaa371b2d8514dfe187327774412df
BLAKE2b-256 2714ffcbd4519ea3024353881fceacefb44f9550a34a2291c839096a94eb1882

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page