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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.913-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.913-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.913-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.913-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 64f81e2dd7c3acf3f3069fadfcc20c1f53f1e5303a6707f62eb90e324aed792e
MD5 95508d3dc55c4be796ae18d417ab80f9
BLAKE2b-256 a27d5eb2d7b16d8a0ec7b17de48d7c9859eec4846779c6b9034521e98dfea06e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.913-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.913-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 92420b7786b8c4a0dfee071924f98d3ce9d8261ccce5076d3bbba45550c885b2
MD5 0b755b373f931b393d1211b0b7b43a13
BLAKE2b-256 4671e20a622cb39e28522ae832b23ef471de004b1d43596592a8e51d315a1481

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.913-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.913-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 edf0f4cc1ee30ea3cd424299b7b282643b9726b96a680e69f7924d43ec43d25e
MD5 4a063a27b04031656083d5f63b7bc6ac
BLAKE2b-256 8ad0b92bd72b7cedeb6537c3a8b80df589a74b5cf4316ef390253cd672b61706

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.913-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c5dbc28f020121da5a3ac20651bdef4699ee9e35572f3131dd44c9560a34395
MD5 d3f2bdf618c7e6437e0cd18f37f2ded6
BLAKE2b-256 a7fcd7e48edc05df9713ff34caa8bc869abeca67d5ba2e0513a0674b5e1c301d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.913-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bea3498618fba8000672954545a02edf137741d41ca4063573184c6f2576c7e0
MD5 f1c62607f0b4687f9fd0ac200e583b26
BLAKE2b-256 a57d19b1a0a699b01dcaf14973c4dfe1b5a716cb64d76740cbed56513f959ab2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.913-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.913-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 daee736b7d9be161751c6fdec976737fa73e0604f43f1a4c9117b48aa2ba1b9d
MD5 d905e3c86e5dece44d0eb99dee1635d2
BLAKE2b-256 780e23bfff46653d4f7a534193cc2e8e04521b2880a27beaf2795cf6fe0bec74

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.913-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.913-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0ca8c21886a91c10405c1576b0bd26de2adb7ca3d5bc80c3cd00482fecc27e9
MD5 3819e68c5a739f2713455aca465deed6
BLAKE2b-256 e669fa8be62261a5c807459e92bfd41ec9515572a1c18828b1fc61d312768dc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.913-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0fde1e5481fd302fbbdd8e94ab39ecc253bb1ab24b10760500600f31ded7484
MD5 422fa4ec275ae37c7dcafcd78e6e5b2b
BLAKE2b-256 c1f8445677ab353c8973b0c7a68fea05aaac65e50096a380e82b586b4cff77fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.913-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 50d98ce9b6555b805640d8a2149e0644907f03716a2cf09da63c75c832989192
MD5 9b9af17b90d100c8e93e0ecb3a577f1f
BLAKE2b-256 7774554eda00b268437f5695d3ec5e8eac00c00d4ba19a1150d7fc7bf5435861

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.913-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.913-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b5d66e9c752581e8821cc9fb65de9a3d7c38feb362ac5681d3f9d8eb1386e7a3
MD5 14c6ffcb917cc825c608614bb8d4af0a
BLAKE2b-256 2e169f202bed5d9d1b94d4c48826e4ae1245c7558e553073e6adb53d4a05d38c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.913-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.913-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67f0981e6ccb33585d18b34bfaa44c18dedffde8438a523eb7ddf7b86342aaaf
MD5 08f6cd4dffbc78f0166324445b98f2f1
BLAKE2b-256 c6d6b8344c7059d885699e7e0b2c6f80cdb00bdb858457a074030be69c2f0813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.913-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ce9bd35e266cb0946f49201a7c9a02107643e4dc1c954b340dd5d8f3f572ba4
MD5 6be36bb93691cb096d66e06e4d5ed44e
BLAKE2b-256 65efda8cbfd9bbe58c33e0dee40ede33bdcf65df518c7e7ffc5030cb3b7b9ad5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.913-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.913-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 428b2d6f29c03fcf6f04f609ec25712e91a0d4163544e9e962385adddec3e5d9
MD5 c4f48021cc74daad9a0b32ee511db723
BLAKE2b-256 c20894b9bbc6543acb865ddf7ce203f32614fd52800c1c58e4fe5c361487837b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.913-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.913-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0a631f52efe7b442f2c25e60dc80e7ec35afca8e7abbd5e6fa65fe562bd0b097
MD5 886e71d9fe306abc2e62e93249e9cd88
BLAKE2b-256 b0fb4f26cb434bc4b2bbaa5d8d135965a56532a844cabe450d9d825fdf644264

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.913-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.913-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e7b52b1770a4a74bd95e2ca203a3d8e43843d08e4a80374a590f227317569e3
MD5 f51dd9cc61ee6abc7baae6bb1cd52607
BLAKE2b-256 9538eaaa92e4aa7b1e472ae8c387cb516447c4340a47e384f8407ee80fbe9cb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.913-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a0e8e21bb0aa176a3a03edfaa03429877e9cf8ec4b7f99ed13866702b14485f
MD5 64875fb362674f3e4010584e337a6c8c
BLAKE2b-256 0cd6b51a58d0c184fd9b33c9790917ca05df9a0151a71433613819382d9be2ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.913-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.913-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 38ffce605ff2e13e3199fda34575292bca25b4ae2911765e510f60951d5fec0f
MD5 652dd467ae0a4404f701f279404d6bbc
BLAKE2b-256 55327c30b0c0aa5c71b1af794fff2ab8dc8898cc2502be5e4e95ec400ee80ad5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.913-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.913-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4dff014036e42b0f8bdb480eb38615577bb801f20ce89f450b3c35fd225d0a28
MD5 a956f0704317e21fbca163baa3294253
BLAKE2b-256 386d85e5f1c81ef43e4c20ed102f65f163d5163f15fec67cd51bb97087e440cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.913-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.913-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e41b6527b161ba6242525b1db306d00f49bbd03fe16e86e2cf5f1e8d2884c676
MD5 f57ab0c8ed5cb52f07486c5b90e72ab4
BLAKE2b-256 acc154832907e815e27e47571f43500deefdbf5969ed714f4706419a3b68d900

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.913-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5fa6f9a28115abf6cc48c362dba13047ff7be91bc5ccbaf9399963c56b4fc880
MD5 4a7b8c060e355cd0b49f4f30d1920731
BLAKE2b-256 4645f97395053e1af1dadf2303b9a2dfc5cf1fc1be3ff8b9623ef46dfd533c63

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