Coder Social home page Coder Social logo

zettzet / plotcp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 445 KB

Python package for drawing transformations of functions of a complex variable of the whole grid or a given area

License: GNU Affero General Public License v3.0

Python 79.89% Jupyter Notebook 20.11%
complex-functions matplotlib-pyplot python

plotcp's People

Contributors

koolmonke avatar zettzet avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

koolmonke

plotcp's Issues

Add polar grid parametrization

Add key word argument polar: bool = False (by default)
If True:

  1. draws polar grid parametrization(transformed, origin or both correspond to faxis value) instead of cartesian
  2. Reim.REAL is for rays from origin, Reim.IMAG is for arcs of circles
  3. grid_step = (n, m) means ‘every 2pi/n rad will be a ray; every mk cm will be a circle radius m*k’

wrong first example, cplot

Your main example

from plotcp import plotcp
import matplotlib.pyplot as plt

def f(z):
    return (z+1) / z

plotcp(f, (-4, 4), (-4, 4))
plt.show()

seems to produce wrong output. Note that f has a root at z=-1 and a pole at z=0. None of this is seen in the plot, it's more like +1 is a point where something happens:

sc1

cplot, a package of mine for the same purpose, seems to get it right:

import cplot

cplot.show(f, (-4, 4), (-4, 4))

sc2

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.