Git Product home page Git Product logo

rydberg's Introduction

Rydberg

An experiment to see if Swift can help with writing physics lab reports. Still at a conceptual level.

image

Motivation

Managing complicated calculations in Python as well as updating the results in your paper can be very challanging.

Implemented features

  • Create expressions using operator overloads in a type safe way

Partially implemented features

  • Deriving expressions using common derivation rules
  • Solve simple equations
  • Render expressions as LaTeX

Todo

Possible move towards using types as generic variables instead of instances

As seen in Experiment.playground you could do this:

let f = sin(x.self) // type is Function<x>
f[0] // 0// Function<x> = cos(x)

The requirement to call .self to reference the type will perhaps go away in future Swift versions, so this is perhaps not as crazy as it initially seems.

How this scales to multi-variable expressions and equation systems I don't know.

Other

  • Plot equations automatically in an appropriate interval if derivatives can be found.
  • Better LaTeX support
  • Linear Regressions etc.
  • Measurements with uncertainties (preferably inferred based on significant digits)
  • Better Unit system
  • Leverage type system if possible
  • More algebraeic functionality
  • MathJax?

rydberg's People

Contributors

anviking avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.