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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.610-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.610-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.610-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.610-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 285fcdd7322483759a37cfabbf76a4b9858b69dcdc68342484cf211376068228
MD5 ec9df1c6d233e8c1ad1d3ec02210b259
BLAKE2b-256 4ff96cba76ec1dec9703947bf7bfe3d646ce6c78acac337e65b8b8f7aa8f07f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.610-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.610-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5a108d3c8be18167c94e6ec9f79534dd3f0d4d4bd808e18ea369031a7111dab8
MD5 4cf56127f6a9d127e6bae8751f4c7fae
BLAKE2b-256 92c39622fd672a3bdc230a2aa09776d6ccd4d4fe5dfd7e96bfc708ae24c3b6c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.610-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.610-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d5852e2da0d76830ea1bfec461f53c429a2655ab1a76eea8701a890f838f546
MD5 cd1284b5a05050236d1161b4836ba11b
BLAKE2b-256 93db8570ab72a15c1933f555ef35d1918fb6723dda1483cd8d05fc9061cd3c02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.610-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eec6daa795b38304b831402d587835c4bf5646d661c63b545974478aa784d1f0
MD5 edcbc5f2f85720ba7d94c770e7b16855
BLAKE2b-256 5e00d31d76247cfa42ad1d736cdcb0a61964996fe0945c58de99c4a62794f669

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.610-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 36812150bbe843e7d11170e6311c1b40ead6af37d41d3e7a53a83a1b1b5d084e
MD5 71e49b4a0c003a42c127a585bbc1e52a
BLAKE2b-256 1f6a4a5dfaa445387da36065df27e891bed418115138f57e10a1f43c5ec4784c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.610-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.610-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 57d21255d8bc75ebc904adf1ca83bece8ad8a9b868a76413f7f289bf4429aae9
MD5 403f4958f8a574be86b7344c5c385351
BLAKE2b-256 cd5c7f7e625f6ce0003328812c31488fe8d4fec88a89a8a70dd44746d20daae9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.610-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.610-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd2f91136d282318d0cfd08f1050f5f80643649c416281bfa4e042f8b68ba0a2
MD5 f517c4a1bbdccf1b6d7e3e20f5285214
BLAKE2b-256 64730c6932abddcbcf667fcd477c7d2301fa71a10009dd84d23197dab4fbf1de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.610-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7fd34ccb5411891a93eb3886d4a6136193d7206dbc615103fbc12ba5e2a95bd
MD5 9dcc2efb77c1292b41235576523ee278
BLAKE2b-256 8e29bc86662b8b670e04a7bbc36abb1c151946aa2cb7487ea785eb8066dd73da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.610-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 46b5399d1a16285482395970b32d6a9d93d5bcbd2b84d07b08781918a9d575f9
MD5 d8ed06f35c5dce469a8b3cf382116c52
BLAKE2b-256 088de99220d84a245b004bb1b62959773617d25c367551bca76df079761e5337

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.610-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.610-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b72eb8b1cc1dfd0a1b062fbbfcc7468718574d205c580e1cd87c6e2044a57723
MD5 45dd355e5313661349d5c5d2c02f4c6c
BLAKE2b-256 625bf49381a96d488418bd4197a6300750e8ba93fda1e37a5cd7f7478e6850e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.610-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.610-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14f55b1fc5038f62497987b883a383b32ceb490f8e1abb1bf10b91fa035cd9d0
MD5 27d76f7ed161e429cf2cc81b71513332
BLAKE2b-256 6d83c305dcef39bd1655c01c8eba3f4e34f903516ff526cd3bc7a62b46c419b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.610-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3732beb378933cecc3f24d05f0d42fa423369dc5e192a2a1b15249584a63c27
MD5 5f4c3a52320a8c84ae0ce9a778c0da4e
BLAKE2b-256 da996e11fa195dfcba3c343106c5f14cc191eed8703b20e79493dd1ce1d7bde0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.610-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.610-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 09be1c35ac26e09f0d607a32b3d6979acb1d3f5440295acbc377899f2f323510
MD5 04d9c711502d849d04c0dd5695b4d520
BLAKE2b-256 1c1e7936db0e07dbda7d6c430c42185b4f31bb664876ca5b672653475d82f63d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.610-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.610-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cf9458d1e7b7862b24e047e841ca8e72320d85c5f1766d952254d653cda5e8a8
MD5 b69cec88a8af3d9ca83dc9590740d51f
BLAKE2b-256 2bea9a8f6c299928eb3eff60d7fb0216ed6acc77e12f02095b2258da29392469

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.610-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.610-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d33809f1a50f591380fd342c712df20179f0b13bb60097eb6fdf45b3a51aa78
MD5 5495871d2009fb74594c30a60a46438f
BLAKE2b-256 bbb0ea4f3fda8d386d1b9fe2a317c42f75fef06de968b539c77fd4fa0141dc11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.610-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f4f3cb11adaf76e77788f5a4a066f660cc74f661dc0d188ed984e516c77ee77
MD5 5205f1a1211fa0c10c9faed1919f447a
BLAKE2b-256 05657adfa9a59ca56c90084587a90696f8febb080528c79504e1b2b66a123a96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.610-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.610-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ae5aef9e09b0d0353cd7b5f27f0e548dc9283b5545db3139cb3ec3b9fc0a29d5
MD5 dbcd88bb5dfb17dcde2af320fae8f4af
BLAKE2b-256 6fb3e160a83a1f7fdd92b1a512673f4ae0b5e455b7015b2a32844959e90696de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.610-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.610-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 576bce1a8868bc8eec04e8cd6a48a7a070b8acc1fba366bf48a60b0052d081bb
MD5 4ece4e1c6fdf98393231427d6bbc8f43
BLAKE2b-256 7c03672674eb8d914d587adb986e97d046a1f9cc5d20cbd4862d20a9308f7231

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.610-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.610-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31e4f7e51bca75f59978e126e9612398925185aba2967085b009ccb5f030be43
MD5 ec2fb0ae7daf163216f4b2525117c3a9
BLAKE2b-256 bca4584a8ecb8187686ea7422db8cfc0fd232cb6935003349c22b02d778a82d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.610-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2064b0d6ffbc432e9d4caec820f733e870c3bd6790a88079abab8d3f826ef032
MD5 a929e55517db86d67e206474a7aabf3d
BLAKE2b-256 b07b6df1305fe466d225e69f5d38ab33491b831d1e042f508b314000eafec30f

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