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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.738-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.738-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.738-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.738-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 049e6f44f945cb30e49fe57846688c615cd77368086d1d1238cc8586a4c2ffae
MD5 d5d9af1e9c840f60ae9ac35a41f8aee0
BLAKE2b-256 39d1964877e33b3d9c840da7cf77c57fc3649fd7ff3a5e55f50654cec44bb04e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.738-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.738-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 11b27f6ce4427b852099fbd05b615d430d7ece6f6b45534e9edba95f84ee8e49
MD5 9f0cb0b3ea2a98d686e1df05b6b4704f
BLAKE2b-256 2aef025930a58bc82ad8b5bc420ba702ff09d088d19309f6528aa309e03737ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.738-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.738-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0a421bf80b9474d0c57cb1b934f3a320771f081c62a9a8dc1d216f1432d9a6e
MD5 724426556ee3cb01e603e35e5898aab8
BLAKE2b-256 0b8c194eff54c6c552e538201089329b03b0b2f57d203107cc1d532188d9d6ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.738-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94d9721e7e427ba84572da3c3c2d0c7540de12af64803529c63637d83f746f60
MD5 54f17ab81904bf98b7aa6ad8c2bf0af2
BLAKE2b-256 1e7601641db3510ca66fcd64deadd39814552568b5994c1145975fb4f4600973

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.738-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 35cfc318d930d6f12a9bc47c328645009eaf65600f233ddbfdf3fc57838a93cf
MD5 51e7f220df9a5987d0793b6b1598be1e
BLAKE2b-256 2396a18441fe27b91140e2dbdd8a19b52e37637a6297bcdb5a78369752b0afde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.738-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.738-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 df6f69c0cedc798dd624a1ee7724b301f35e17f8fcbd00dc656c37cb72de6950
MD5 b984dfe46c342f038771ef2e127e8f78
BLAKE2b-256 9b3c93f95ee1f4774cce2465c4656c190aa1f5a7b78c5befe95026c8c9d7d9bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.738-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.738-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1cbe47d7f84769ead026220f35236657647738ec9c0d734f99a8b88971a9b050
MD5 9e992a68e31a0b876f867bea1aab4999
BLAKE2b-256 b8e9a22a6cf40da80c88a48e03ee5b5606746cdcd15905b9892089970c23e909

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.738-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e29f2b0561a20393135672863c5354cda7e829852299eba643f8bb8982725a0
MD5 b71a2b8de5b4625d4b822beb00f97345
BLAKE2b-256 c65f4e7d768b9f904ce98780d6fae7876efc3e24cd0bbf4d3e74343683260413

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.738-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b603430944f9721cdc8d7ed250e6b19d77fc1c90a47c92b1f549c01f576cc45
MD5 ba78aab52fea0a1cfb03a2b0148b40a8
BLAKE2b-256 0ff46a0a12de389f9e10bee505f46037fe90027a62a9ffb3a152d86e42a6dae6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.738-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.738-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b152c865314ede93dda3bf34a8911c76e5f2bed0e797c98c9be4f041706cf080
MD5 217e232784e899694fc86f22e31e42a4
BLAKE2b-256 76ca0131d214b6c60e523a9af5e238499f32c1db39dd04ba151fe5ced9cab46b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.738-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.738-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be4d28ade4005edfeee1a0a22ffe5932da8664a557edcee50736bafd22590d06
MD5 c195b87193998f86de0701ca61c8d1dc
BLAKE2b-256 402e1eb0147374d608beddd4d2d4ee7128f38cae37da59722602a080ccfa68f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.738-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49ac777bb27c5a49365e2ab7248899414a507004df17eef7c1b8f49061e1c14d
MD5 e318a8c62c4be927bb01e7c7558a77d0
BLAKE2b-256 8ed5c6d5c0c52909c07ef90aa3279055bb6a1d8834e48ab6b91cf1beb0f9c8b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.738-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.738-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 00ef68e4c5dd3883d124f5d390f2ce8d000f121eaaa2e6a87c679af0171f5cef
MD5 1d45bc30873bdb20b0a78dd106428f54
BLAKE2b-256 cff947e11055e56b0303f6dec7a80dd84dfc1404cc7e44d8b4c22fb326ee650d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.738-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.738-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7e39a92617b7bf37be8a100c777fb9729c898eee822d9be2eb9da32a5d3a7077
MD5 01b146b9c7de75b598cc48288b9e72f2
BLAKE2b-256 d4ec0291643b35e5be568f56f1917015745b05ce098414ba35193416c74b224b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.738-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.738-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b70a1e69ab38292ece74642614e5fdf343a309f1c98d21f98791dac550a10602
MD5 9710727b3809b2c7589cf97c2d44ab9f
BLAKE2b-256 e6d899a1f3a97aca03f6bf3fae7911412301360925881e04bafb3e0956258fc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.738-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94ec4250750d992f460b008f6121484375a23d1ace1693f4236b1ebc8d1905f5
MD5 1bfa2555423b54b5c5d13186826735a3
BLAKE2b-256 1084899d495a86b4d5ab0f4292f3e0e3a9095bc233eb887fe5dd785f31b6050d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.738-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.738-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c828ef83b2137e5b9d3c8adfb7a400bfd4221dbf898ead5b06fb9b7f0a49176e
MD5 74a3f93194fcf67a06afadeaff4f7393
BLAKE2b-256 40b624b1fbc117d208c292f911a0836add71668a9290baa6427ca796335436dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.738-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.738-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 753db5bfc98edc3579abf9a80a83725b581c88beda23780c654127a167fd4330
MD5 075755912afdb38c59371f1a123efb41
BLAKE2b-256 b919cf395df94abc2089e281ccfc108834b5b026fd312200c2b931a4af8ac66a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.738-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.738-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9430d0574d4fcc37a248c721bea846c920e79bed55cdbedf76dbed13370b53bc
MD5 2e0f9391d5c670693437c5d7fd075195
BLAKE2b-256 0564960a84d672d54439af05d5f2dacfe858c0af059cea9b8eaee6fc94c982da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.738-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1dfa697faa6d49c2eb9168280c5c09a22f0b45bf4f7acba545905b1e121e25a
MD5 1149c3fa94c3bc3744c1b871fe2e93c4
BLAKE2b-256 d2230ca8a1eb21a351c5ac29b12a5adc6c4977c25e86489801a546dbd92b1e44

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