Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotting a discrete function #16965

Open
PyMarc2 opened this issue Jun 4, 2019 · 3 comments
Open

plotting a discrete function #16965

PyMarc2 opened this issue Jun 4, 2019 · 3 comments
Labels

Comments

@PyMarc2
Copy link

PyMarc2 commented Jun 4, 2019

I tried plotting

self.getEquation = self.dutyCycle * Sum(((2/(n*pi))*sin(pi*n*self.dutyCycle) * cos(2*pi*n*t/self.period)), (n, 1, 2))
signalPlot = plot(self.getEquation)
signalPlot.show()

UserWarning: The evaluation of the expression is problematic. We are trying a failback method that may still work. Please report this as a bug.

@oscarbenjamin
Copy link
Contributor

Can you show the code to reproduce this (including defining symbols). Otherwise could you show the repr and srepr of self.getEquation?

@oscargus
Copy link
Contributor

oscargus commented Jun 5, 2019

I can confirm the problem (replaced the unknowns with 0.1 just for the sake of it). However, applying .doit() allows it to plot, which can be some sort of hint both to get around the problem and maybe even to solve it (probably the unevaluated Sum causing it).

@ishanaj
Copy link
Contributor

ishanaj commented Jul 8, 2019

Issue #16572 might be related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants