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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.568-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.568-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.568-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.568-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 646ee43f1396ba2b145d0aa7eafa0c14c7e71e245bac9683fe1d5bde62c0a65c
MD5 56d740eb258506fbd3310e93a9aa6d1a
BLAKE2b-256 fee57d99ac6452c9bc177f514222367445c0b423af917dffdaccc71bf333e823

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.568-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.568-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c764f9117078e057dbbbab969e96bb6e5a330dc5698449ca4b548496f91438a9
MD5 eaf8a5edb4a041113506b1d9ff2f3fee
BLAKE2b-256 2b47a262defff125b043c110d6027ef8d5428cc5e3290a49f02381b9bc8cc1ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.568-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.568-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 544a33ecc808bff23dd27fa7e0346f4c5c26875cabd9b9be8f9ae293ec89ddb9
MD5 f32f80ea3406d90c3c518166cac88b81
BLAKE2b-256 26d7e3bf5c703921a51454270f5df98cace0b34b252e42a3731840f3238d9a8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.568-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 388ba66ae925f81de72e077c1e047d9a11a3fd1d5abbf2a22b26ec37d3ece201
MD5 8cfe459d04315cc85a9ef9d08a9d4435
BLAKE2b-256 6d89bf6ba81d88b0f5ad935698e2f2983c4e7c8bdeca3b340cead9c8e45be215

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.568-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f894d54b1bf8fb5f1c05ce978f84a11af3d64d03527c74f69038ec8e0ed7a3fe
MD5 5e1db7681db3c03ede9eaf264ca13c86
BLAKE2b-256 71261524599e252fcecc445199dc53bfb41432133e7a0bdb5eb2a2a1eb043287

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.568-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.568-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1586dfd4a0db6fa5eecca7f8c288225931ade1e0f7ee2f468228c1e7428cd68d
MD5 04df39f82200f2e8ae069e24fd7ee351
BLAKE2b-256 92360ef5e763a6880b181ae56e2cc56eb5058bc874934fbfc8d481d361a4796d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.568-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.568-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a1cc71671fb0958e66f2c0240abd917754526fa25fae3c567c7829571a6ac60c
MD5 cfd57cae21f7e908bba21d9a25842f63
BLAKE2b-256 12ccf3be958a86c3004e2131befb7cb3dab650b8e16aca04834466ede4dadb9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.568-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe11ab957c587f2fc0d02b0e17be999fa0ae397eb4661238205974d9369b8fdf
MD5 eaaca3fd977a049a97de5a5ec18cfbdb
BLAKE2b-256 af4f97b71b3c666739a937b6a856de5105bf1f25db3bf41034cde1e7ddc1cd6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.568-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1a97f586e4ba3bd2d357ab4b734d6a02169498a0d4e71fc83b7a4fcef1dabb3f
MD5 6ed7cc25cede53a8e0c789df69585a40
BLAKE2b-256 0ad8bf9d70964846dbd8c9a60259f7f02ee283b6613ffbb5e6c8fba9b3977a9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.568-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.568-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ae79823c4af536570b4586ac307cbf0993fa918a8a94d2ecfca53e45f39a2dc7
MD5 18307ae88f93e063114f3d5936350050
BLAKE2b-256 456b46bd50d5ef49f77ac01dc413fe5e25779592b93a87b1e0ea22acfc2919a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.568-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.568-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 86d1cb96a03cf56dcebe11dda2cdb342b519d32603b51a4ef98ef24f0b0634fd
MD5 659ab9227d5cf1e5ce0f587d6cad0015
BLAKE2b-256 4319f4f293fb37f556bb44b8e8075a94b9d53b29c14b8d8ccd0439c936dea508

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.568-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80d5ef23c4b041d37baac3dd1a35389897f2a29d290c7c7b3a6592db8ca38387
MD5 19910cfef008ca70bc4755638675c06b
BLAKE2b-256 5f32e18fd4cc2c01728652784f2dfe41759594955ab1c1d03109fb784d824f84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.568-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.568-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3446eeced30153bdf2947ef5e301402e740f719b628aa52033704462f3db884d
MD5 d76586f71c4632ce688e5e0e09abe3b2
BLAKE2b-256 3acd21db80c9b26bf7c996b0795c84bff453a7aa7c58c2d7b6e30b024220df33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.568-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.568-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7df2c73351de69b5fd67e8472767202c32f3a3c1a8aea74f4407304a1b5bb55c
MD5 f79dd3e28973cc35391fa41c1d1d918e
BLAKE2b-256 d7c9c24b636826e2633e52dae9d4c72384541018ead0d8411c7ce0a37b1b9299

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.568-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.568-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0408b6fd39f9923fcc9c32224485c041c806053dfee582159760ef444ec287bd
MD5 470bce4320d11800d6b42e93d22ecba2
BLAKE2b-256 95f0921c7a959cad274930898e238200091070a45af1803bd05cf0bd3c6d95bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.568-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37bfd8b4260b84147880b06c5992ac361e45da8691b4ee2bf5f953d1d866dd43
MD5 c9b4213be9fed0a03be82c91aef1febb
BLAKE2b-256 229e1cc29be7fb345e2770908547ce1c87dcefbd8db1b3818be8cf77fdae8d3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.568-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.568-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 28630ad5e0d69619a908b3558799453eb82f85bd2c36e04ee06cc62d7b3742de
MD5 0d0bbef7ac364f19bb68b31e92bd64a0
BLAKE2b-256 1f69e45138639bc85aa4bc5cd312d3bffbb4562338cdbbe93fbce58190bb223c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.568-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.568-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d034150ae59018576d4945664da3fdac7a653aa222f92b09f6b10d3a82abc04e
MD5 1d5168283fc06da9330d25d4f64b9a4b
BLAKE2b-256 461bfa3db4c0030b3e03fe5b059e90ab7292b75929940eac032df00c3c757e4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.568-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.568-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 619cd62bd883c018dfaa516be859be2beb0242b5b2681a4b57579575ae3d510e
MD5 a38cca39323e7d820a0c186aa41346ae
BLAKE2b-256 ef13e3525b1b03cd5191208cadae08626d7f668859184fce4c51e8e340f8eecc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.568-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb5fff026555b1911dfc0a91927654a554ab4fff7510b473eb88ab2b124c6b20
MD5 f0b50614ad80f95e92766da5f6d353a5
BLAKE2b-256 ebce7b6246e025e6cd53f53648a671152a3a85e2b0a6313d826b81ddedc76098

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