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.763-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.763-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.763-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.763-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.763-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.763-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.763-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.763-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.763-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.763-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.763-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.763-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.763-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2da55a4791bdb20e5e5eb4458f4bfd31a62c93c9b78e02e6bee1f279cad88158
MD5 808929228470b396f6b6f1ea615d3528
BLAKE2b-256 4e413ae7145577751b5d29f8d92392bad53525778657ec357bab6ac611e99142

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.763-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.763-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d83a3d224d6b1ab34756e0e8f5a15d37448a69d8e3dee2d6d9cf1a05466d8df8
MD5 b9741c1f49fa89d2664c3aeae01165ac
BLAKE2b-256 6e2f2c5c69ae2254a26519b58f9a76a5e330b0132de66223a62ffb562f7c78c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.763-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.763-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 642fb0e768d890022cb02944d6ff2d83f662c819dff9fcc3e55e3c33f75680ac
MD5 f7fd0f35139dce1bde792a7111302402
BLAKE2b-256 9e48e6c69429acdad027f5dcdf647294e4b97160ab420ac7425a08966e6f9d73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.763-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79bfc32cc8c900b6ad22e30e8b75749a6572b988ae6c0bf2d1fdfdfda8cb3bdf
MD5 530de48d4cf1b4255f11ca8e211e6e5c
BLAKE2b-256 fb4d0d370489f1411313fd152752169fccd8d5a4d9446903a22a9da154a87d25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.763-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9a2c5254cf1e188ae8598ef5610677af2cb79adbe1cf7504854b32c19c24e196
MD5 efdd7844120564bfe0448aaf69887c9d
BLAKE2b-256 1cd0100506262c769c5daa00c9622f854dcee92f99ec9946cd1c91336a09d761

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.763-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.763-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 247552e4389865c079058ef44d5093916afa4a285478959967565edec9c05401
MD5 4bcc5762cbe3d5f1d72237b68e82c7dc
BLAKE2b-256 2b7482576dd977bcc564b3f7290e26bc44997c9376051725a9cd91ec844030bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.763-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.763-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91b5744525535a1d408f3ef438e3dc1dc333640cc43ac0eb94c715217bc3fe64
MD5 790972cc7bff1ca4fba8008b0ff6b764
BLAKE2b-256 48d36ab9c1ef31db55355abc0b79b44616eabbd936e0d58881fd96e8454dbb96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.763-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c179b53c8d7285abb3ff2487764c5bb315b2ca88b49aed2440e33858ad25fd9e
MD5 8da0b61bd192fcd297a3f06d172d9fcb
BLAKE2b-256 614d4db4efb33bb6ca59fb7f9c30e297e2297ea3c4e8eeaaba1f436da815bd71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.763-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0bb8a5516a95ea26376d335fa03c41a7cadbbc887ee3ee7ebe008925eadb2ddd
MD5 8ff09829d7d0c0fe516fb3cc2c8e30b5
BLAKE2b-256 be22baa66c36710d46c07c1d880fa9d80a84d4042b580f2fb02994cb890726fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.763-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.763-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b6f118c8654c01903d240fc0d09704fa42ad2fb752fee807092fdd5b704a11de
MD5 57c8dee580c5536d555e9aa1be4be435
BLAKE2b-256 b521816424ddc3f10abd7dd8bf81826d07732f6486b63d0b21dce5dd3a52627f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.763-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.763-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efd2305758797c59f3a527263ef392c1bc1abb9a1b837423fc75c49152e32635
MD5 665b81d7fd8e75b6464de0d7fc7c4018
BLAKE2b-256 7c6ae7ed6d8c2f305bde2e0fbde29504755f703dc2202c8569bbdda86188c6b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.763-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b783dc96cd17741769db6db04fff2138190439d19b2323a9453793a514631c2e
MD5 1335f0fbe58c042099669be822107ce9
BLAKE2b-256 48ded59c432ea3efe4443667dd27f3f27377d80848f8c98e8b3644e33ff53642

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.763-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.763-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 45b7314ac3cfccf2b828a273d304cf16549c7ee8e2792d1768ae1fba3ea80187
MD5 9192592d6114b77af38dccfaddcd9b62
BLAKE2b-256 c71689e12377ec4cf731b924190042a02dff5b0fee5c60e89a5a3f2170983820

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.763-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.763-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fe5af6c8d8f636af4f2c364d7f3b499f2754ca3ac4eaae8502111406d35f8cb7
MD5 8aa6e9c576a49b445cf6fd6bb745b0eb
BLAKE2b-256 b678e610a9bc2fc4f84738122da82782825da88e15dd2cd8f0fd693593708c63

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.763-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.763-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b0f9c23eef425d51b2218c2f7778bf2bee344dd70277e545d17a2a435ce0540
MD5 540d6cd22fc9caa5e74fcccc5f94e5b1
BLAKE2b-256 a5ec7641d71b4fa3ce78c205e287e3c871a2514912a84c30cf6e88c862bc8f96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.763-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05835c98f428d93aab5dec621f04f6902d84f53bba8257636dce441851e12259
MD5 475441784c78e1341c88a58bbc40d94d
BLAKE2b-256 2152cfe5d0c8e3837b88972e37d39e177b59533570d2a5350c8535574ce82324

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.763-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.763-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1e4c9ce004c16616f328379dda64d2f074cf1e207589a2bba672cf9f8d390d09
MD5 8b3536fa3311ed794ce15dc80775c6f8
BLAKE2b-256 9490906ee5fc84f07f1cb417229f11992f8db08891f32f742b289fd353dbf523

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.763-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.763-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 afed8f90bcb9d0983413339d2f83efd6655694304c71a62c229079aafd05ed6b
MD5 49f92e107147faac7650b643bb346454
BLAKE2b-256 dae7213da661b20b8128d2cb1f63b5152055d4d834c9c4b3d1c7ef798a0d8019

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.763-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.763-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de9ec2f2a0312095f3781f336ab2fa4f6882f3be8e60bcfb7a5c88291eb5eb5e
MD5 d7a4bea2bfa5afbb8182decbd7f3636b
BLAKE2b-256 df283a8962f9200bd271f360a05bb1ce2635fff88746d82cab8084a2c16d83fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.763-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8c85d54a3707a6c0d4aee6605147890c797353435f7e20eaf2055be2b3aeba1
MD5 982e5c4d6ed48a3843611c7358084f73
BLAKE2b-256 7676d9341409c1c48c4419ae39b0932603739d7337a81a6c787f79cc06bd0d13

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