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

Support for exponential form of a complex number #192

Closed
ronnycsharp opened this issue Mar 12, 2017 · 2 comments · Fixed by #488
Closed

Support for exponential form of a complex number #192

ronnycsharp opened this issue Mar 12, 2017 · 2 comments · Fixed by #488
Assignees
Milestone

Comments

@ronnycsharp
Copy link

ronnycsharp commented Mar 12, 2017

Hi Dmitry,

maybe it's hard to implement, but it would be nice to have.
=> example: ..Tokenize("r * e^(i * phi)");

when we find an 'i' character in an exponent of the base 'e', then we can build a complex number from polar coordinates.

Perhaps you could think about it. =)

Best regards
Ronny

@sys27
Copy link
Owner

sys27 commented Mar 13, 2017

Possible, but I think that such logic is not related to Lexer. I think we should add some 'semantic' analyzer (as a part of parsing process, which will convert e^i to Complex number). Maybe, it will useful for #119.

@ronnycsharp
Copy link
Author

sounds good.

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

Successfully merging a pull request may close this issue.

2 participants