GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — squeeze: return shape of the frequency response. · Issue #594 · python-control/python-control

squeeze: return shape of the frequency response. #594

New issue
Copy link
New issue
Copy link
Closed
#595
Closed
squeeze: return shape of the frequency response.#594
#595
Copy link

Description

@bnavigator
bnavigator
opened on Mar 28, 2021
Issue body actions

Something strange about the return shape of the frequency response. For a square 2x2 system:

sys(np.array(0.0), squeeze=False).shape
(2, 2, 1)

sys(0.0, squeeze=False).shape
(2, 2)

Originally posted with the wrong result mapping by @forgi86 in #593 (comment)

Activity

  1. bnavigator commented on Mar 28, 2021

    @bnavigator
    bnavigator
    on Mar 28, 2021
    ContributorAuthor
    More actions

    BTW, omega has to be complex.

    >>> import numpy as np
    >>> from control import rss
    >>> sys = rss(2,2,2)
    >>> sys(np.array(0.0j), squeeze=False).shape
    (2, 2, 1)
    >>> sys(0.0j, squeeze=False).shape
    (2, 2)
    

    Now I am even more confused and will stop for this Sunday evening.

  2. murrayrm
    closed this as completedon Mar 28, 2021
  3. murrayrm commented on Mar 28, 2021

    @murrayrm
    murrayrm
    on Mar 28, 2021
    Member
    More actions

    Sorry, accidentally closed.

  4. murrayrm
    reopened this on Mar 28, 2021
  5. forgi86 commented on Mar 29, 2021

    @forgi86
    forgi86
    on Mar 29, 2021
    Contributor
    More actions

    @bnavigator as far as I can see looks like you can pass real/complex/imaginary argument. I would expect the output to be the Laplace/Z transform for ct/dt in general, but haven't really tested!

  6. bnavigator
    closed this as completedin #595on Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.