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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.238-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.238-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.238-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.238-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7be1429046a6428b697bc7eba1c8cdf628bf70bd056c9ab24a020d9d79ec8956
MD5 22ecacdc451554b5806dbeae9adcec35
BLAKE2b-256 2a5f6b35799291ac0a8826cefe95e154cbdf093b843bd13928d45bda89606d99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.238-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.238-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 092d69ff9c10bb10743f7c33cea1a736b5a576d80e0387fccf34ff1eeeccada7
MD5 e3e314152ca92ef9dd3567e80620a1b0
BLAKE2b-256 db4ac55a01872878114f59aacf37239001e0518c80bd921f2007128627593fec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.238-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.238-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 27d25734db0a126fd75a0332c1199b3136f8ce3ec23fc59c992f7caca5f01474
MD5 378ffa8956fb14ba59df33aaef7ce235
BLAKE2b-256 09fad0ed99fc8bd264d26659a5be14ff712a24eea25e2546498ad49318be5069

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.238-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 384167b83ad29d172e0b85bc6eaec37838ebfa15ab082dac77ef30785948326c
MD5 3ea220c74cdffa95c864cc6c5091ffa9
BLAKE2b-256 78c8e080a475d35769053df84ad4eb69231a8ae7fce94a6d1c246d3acb684f76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.238-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d6dc0b94e52ccc0a22b7a1ddfd2743c63eab365f2d717065c085b5b2f2b1fea4
MD5 76f5ba7498f23162591b0526d934f517
BLAKE2b-256 6e8ef9fc4f150721757f6acf2a08ffbc6fcb0e8c3da58ac574ba11b8c010ad60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.238-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.238-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a8651352235071be07875c589098f7dc32ed8e95bf6080c8dc6d0492978b132e
MD5 e41de61f8408a52785891872f44f2d31
BLAKE2b-256 e63933ac3da574c86dbd36448bfe2e3b208edf2d4a732b10b6179226d5de2c45

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.238-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.238-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9717d19a2f7b363f5b6b487fe81b3aac01845f135d5fa02a519af0a439dc4427
MD5 2ec4de4bbabe1c1918a09cc0d03df188
BLAKE2b-256 68ca739f7a3243900e78c620cc896cf873c70dee2694146c1140c24987033c89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.238-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dff5b3e26897cf0530fc3d23bd086621f4b70be4bff1e76ba68a15bf7483610d
MD5 512220204cee4b41b9cb18e39c5aab5d
BLAKE2b-256 39d02feef0ff7d739f64d303f6a25edc96de93501cf0a3a08f3c4b7ff5d9b798

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.238-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e0e24291f03854bb95633b85111c85828379fe3313f2e784fdaa4b0649024c5e
MD5 3d371d1cb9938c2d23e3453e9746cba7
BLAKE2b-256 ec6314ff51277080be29d898a5d2d5631498968e51bbabc453d897d3cf414eef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.238-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.238-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 abdddf281862db1e6c0242b0f7d44d9b2522f03034371cae160463a8f69a6500
MD5 9e22e9062ed84253d97c1c3543ada2f9
BLAKE2b-256 f02a2cd7a9ed56a16151e6fa9d7c06bc0438be57eb4947be4b6f67052d42cc83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.238-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.238-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19b2fe9bc6b4055f20503598f73aee6f1d23f736fb0fc773d4bbe77314ed6d3a
MD5 3b70c0a40a63ca64afe43ac1e6f75852
BLAKE2b-256 994b96b6d9af71f28e9c4e5b08fe090a2758e94a37efb78a1c92128294941a68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.238-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34c90605a53953c14eff2ee69a74ddebfafff94d29ba4af570db08fe50bc4ba3
MD5 749cb3a377f3ebde0d5a9022d8ded1c8
BLAKE2b-256 018dc0b088838471663d730d15a19dd8696f3490f8b225f93a309cf43e93c3ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.238-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.238-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dc944cc9e2e5583b35a843c58dba81b2af2fe01ad3a7b6403dbc6d225f992db1
MD5 2974fb1aaaa8845dce3313beedc34be1
BLAKE2b-256 365d39352a50db5d12c6ff1a7125a98da4c8be5d47fdff3cdaf25d55d9b5390f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.238-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.238-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a4f1858a4a5c3f02320998f35c14e3da65f1c6b77636e18e853ca7cdd4546c2c
MD5 5e046011bff35ed49917f7a3ceb74f37
BLAKE2b-256 21ac723c712665b461a175b65502987bf1b757d5aba001a61c7e4092e279db83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.238-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.238-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44d46cfed9eb0630c830b494bc0e6d6e0b3d016eb33be44d4feeb4be6587b0ed
MD5 799ccbd804c067a207e173fbe90bf701
BLAKE2b-256 bda7dc2ab0c639fa4f04ce3d482bf24304f530367fda1a0fa0dbffe69de2a557

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.238-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e3d8dab18360a32f30b415a519cdd5285da506105d1087c2da212ff5108aa25
MD5 b1923b919228923285e1889dc27462c2
BLAKE2b-256 5183b7f7f4d4ba51ecfb4385a2b8a7ebefc3f7616c24a7f4a604b3fe45da29a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.238-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.238-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 573b7d635351fb7517f13c4882c1163bf08c940e70ed582f0e3752fa3e539b89
MD5 4f2911d3389132bef03d63e6f50c7dc5
BLAKE2b-256 726fc79c2862a45a86475871e0acc5f713fc1f9cdc2149c128cd174130b97f6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.238-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.238-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4aaf2bfb096dc432f02bd7fc4f2b7ab78a4118cc72df4f7bba4188d81f05fa18
MD5 00e6fddb9d434f918b71e522c2ecc6e4
BLAKE2b-256 a3bdb6a87c1880e3d425d063dcfb9d51f9215ffc259a2e5a4bb8870838912afb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.238-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.238-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2cd96c0d3c63716a598327938a728b2e2309122092c14368ed311fb47c0d40a9
MD5 6893a510528e2b202f409f2bcea6e1e0
BLAKE2b-256 e818486132187f0c025a7af0ce6de348fb0ebde97954ac74605811d8a4602e53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.238-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 384f405b056f731927df56569031bf19c163dcc64bf6ccd0582babb729bda119
MD5 e2a0b402a19f0799a63fab555b789936
BLAKE2b-256 b6d5d5ede1449f1958e712fd8557de87f37eb4e6cccb6261e26a6b0609c7ee95

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