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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.921-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.921-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.921-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.921-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 48f7778d698563791d6819497221957c4cad46de01cb7dbf673fe1f1cce9a6fb
MD5 5a5dc4e08a0c53902c95dd67fb9f58f5
BLAKE2b-256 fea7558078ceeb9cf78b2687e40c5657394e7645758c3f0b99facfb21f52fb12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.921-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.921-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 483369605ff7a4f180f2a977bbe535658685931b7689b4a13ca567604ed2cfdf
MD5 d0bfba03f87aea5c72757cc3672f08d9
BLAKE2b-256 f88b309f4250e64f7b58a617037f9f7f3542740bae45e9838935e56395e84529

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.921-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.921-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 01f919d95d5a54ffdef06c67ff669fa4a7d3175e532172a397039ad00aa52964
MD5 f0397e5c88d0b927fee3fe06f966ebcc
BLAKE2b-256 61a678f8363ff92c9aa63e69e411cc1302f33161d1daffc1c18a252c8839fe3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.921-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29637df961740438e3eb8affcf93eccab64fd1a973fec01703966ce5f81b56dd
MD5 8d56fd0831d46f6957685b52e0379fb5
BLAKE2b-256 4d44499822721ae6f2ef19bdd10ee54aa3fd0585d9c62f544f50b2fb6e7395d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.921-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 14acf48ca579088ceadeb91e0b6037145434decd86582e5db851e5674670000f
MD5 7eb7ec27baff569af835d586c87a0d2e
BLAKE2b-256 26b290dc03335627c7d750d00813ce9af032a837abda752b281cd6e47c073c64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.921-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.921-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fd764d257e65ed05bd4cae33d9d6d2d10d6019d9086d723a792b1b3ef83daafc
MD5 f64409900560fbf1b12dd933cf35e86e
BLAKE2b-256 014cf3f34d678e20d6752d749f32ac80402de775f535fed9d6fbea5a9f6f0e89

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.921-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.921-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12725095f3125776a5e51f663602b93f7bd62d672cf0fbf1fc59214b8a57c06f
MD5 21c521b3a37d33db2c7fdd3c17ed36cc
BLAKE2b-256 0f11fc5ba4fed78dceb8956acb4d8528fd5c5ae0e79073151541c7c4d6579bf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.921-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20652f6756864d2c39b0c8aa6e3fda1c3958fa7dccb04dfb327e8f9a15261ca7
MD5 c01c73141516066b80133518cacb5584
BLAKE2b-256 dd700f533f9af4dff3fec83fc1edebf16e5f63e3a0776138259c81b8fb7ba6f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.921-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b2bb9d41242b10791fcd10a407ff4ffc4907c766d39a0c3153b890dd370bebd8
MD5 54c5eeb1886991b9d7b99bf37b4546f0
BLAKE2b-256 5f6a9552f1cd1d840a63085a04645d570a94dc05ba1a6b1506b8abef8792de51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.921-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.921-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f0b3562526102fd332d5122ab144647aa5a5b9b28e95e9f3a3b02f373ff94d23
MD5 5e95569f3b99e254e74688924a91cdf3
BLAKE2b-256 3260eb0c921e35f0197fde58a1d46f7e802fbad487b8ab286f6ef9fdb1c679cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.921-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.921-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4785afec1525787197a856559d3143dcf5fa91c07ee4face9f2e0f642a7db5e7
MD5 cdd4d126d821c0174c84b74c1bcfc115
BLAKE2b-256 e6668132055a492f4518d44d5b40760b03af66b58385bcd3612e663e8e129c60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.921-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1a3ee1bb16c47bcbb466c605cb5b9378f39f7432d193f6ec4adc65b1473d8ff
MD5 643732b95bb9c6abe5d0a7e18a95e72b
BLAKE2b-256 337c6a7c053314315432896cd7de3417116dfba50b37958d4b04534cc0b2a703

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.921-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.921-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 74469abbe14d95fe4b856160a8670acee21d8b286ed257c3b59ad46c8ace3040
MD5 95a2f2061d9b17df83139af07af8bd05
BLAKE2b-256 3600a672d6e580a6da1d28fdf55564230da3cfad07eee9a17c8a93e7aafb6582

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.921-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.921-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8cc8a3dc4678e661ebacbca8a9008c186fefa604fb45542fb02128cd18fa9c4c
MD5 c12263e528352170b2a2f4a03250afb1
BLAKE2b-256 e18eb50eb2756c25e0fcb32398bfab939d575c0bb545454b7a1861273ac0af92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.921-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.921-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d555db0c74ebfcb5ac145c7386789421db577cc518bb87dc9508e810ff97524
MD5 04c29ca05c6b516a3d2b465d8f22b810
BLAKE2b-256 a8ec2a50becaa2ea4d3aa8ddfc40f6342e9641362ab50c9283a0a1f7dcb2548d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.921-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31f36446e69f87d648addddbe300077240c4b82683e120b5d59e95ef5dfbfe1a
MD5 75dcef57e1a0e2fb564a07489fa6f8a4
BLAKE2b-256 b2371c75f5aac92ead6f0a7983b31a5ee8c84032c7be237894e76c5b0445ff10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.921-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.921-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 af145042e9957be1778e1452a20757c86214ab10679136b14426b02bcebc066c
MD5 fd4b3471fb6470cb2912b71c3e96e740
BLAKE2b-256 c52ca8c52c8c96d48bbc3546d08e3e2b33b5243c579e34180877e7596bb557fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.921-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.921-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a0171df5661dffa6253a025b4f926aa03d4a5704b42419caeefcb8fddc11c132
MD5 46a9c011040e8867ca2cd1af814752b5
BLAKE2b-256 ab2c27a7d7df87b5a74d76df32c5370ff05dfadc31beb66c7a282079358cb5d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.921-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.921-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a5fdb2ecf266fd742f328a088b84936e8c7fbf29546cd4fc8ad8e50f84fa978
MD5 0854a5ce4d1666766d8b4d5f14c947a0
BLAKE2b-256 7f0b255b28913619910270103aa857abe273da11aa7dc6aa3a6de068a0a66f39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.921-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7633beac89a55527cea6485370abb00d9f3cc7481c4c6ef93fb3ec17bf4ce31f
MD5 0309cbbe0e6c73e73ae4068bfa5758d7
BLAKE2b-256 d8dad5d8afef46ee999ee0fd2ac098463dfc9a1fcc65d561155720585437c468

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