sympy / sympy_gamma

A SymPy version of WolframAlpha.
https://sympygamma.com
Other
665 stars 112 forks source link

UI Improvements #29

Open lidavidm opened 10 years ago

lidavidm commented 10 years ago

Mentioned on Hacker News/Reddit:

Natural language was also mentioned. Some resources:

certik commented 10 years ago

Great suggestions. +1

Sent from my mobile phone. On Jan 30, 2014 7:51 PM, "David Li" notifications@github.com wrote:

Mentioned on Hacker News/Reddit:

  • The up/down caret is not clickable in the examples
  • Plot of series shows an exception
  • Show the signature/documentation of the Python function on error
  • Copyable plaintext results
  • Simplify button for results

— Reply to this email directly or view it on GitHubhttps://github.com/sympy/sympy_gamma/issues/29 .

sahilshekhawat commented 10 years ago

Nice!! :+1: i can try to fix them and include them into my current pull request..... i think our sympy gamma is going to be awesome...its just the beginning.

sahilshekhawat commented 10 years ago

I was just wondering that do we need to include copyable plain text when the user can have entire result as IPython Notebook? ...i mean that do we need to include this feature too?

lidavidm commented 10 years ago

@sahilshekhawat It can be useful in case the user isn't using IPython.

sahilshekhawat commented 10 years ago

David, i was trying to make gamma plot the series expansions but for some reason it is always calculating series expansion around 0 only. for e.g. series(sin(x), x, pi/2) (Given in examples list of Gamma itself) we want it to plot series around pi/2 but still the terms contains only x, it should be (x-pi/2) instead. So, instead of fixing this bug " Plot of series shows an exception " i think i should first improve the accuracy of results. Any suggestions? BTW I can fix this bug, it is due to "BIg O" which is counted as a Symbol (not defined)..should I?

asmeurer commented 10 years ago

See the docstring of Expr.series.

sahilshekhawat commented 10 years ago

I have seen it, it says that it just represents every series in terms of x only and one have to think x as (x-x0)....but their plots will be the same....( obviously with a difference of the constant) thanks, and one more thing @asmeurer can you please share you views on my project idea of improving SymPyGamma on the mailing list

debugger22 commented 10 years ago

Will that be good to add a button "Download as PDF"?

lidavidm commented 10 years ago

@debugger22 Chrome (and Windows 8?) can print to PDF already.

debugger22 commented 10 years ago

Yeah. In that case there's no need.

lidavidm commented 10 years ago

Just in case someone wants to look at it, Pattern seems like it could be a very good fit for adding NLP, and has a regex-like way to parse sentences. It also doesn't seem to get tripped up by mathematical notation too much.

>>> from pattern.en import parsetree
>>> from pattern.search import search
>>> parsetree('integrate x^2+3x+5')
[Sentence('integrate/VB/B-VP/O x^2+3x+5/NN/B-NP/O')]
>>> parsetree('integrate x^2 + 3x + 5')
[Sentence('integrate/VB/B-VP/O x^2/NN/B-NP/O +/SYM/O/O 3x/CD/O/O +/SYM/O/O 5/CD/O/O')]
>>> search('NN|CD', parsetree('integrate x^2 + 3x + 5'))
[Match(words=[Word(u'x^2/NN')]), Match(words=[Word(u'3x/CD')]), Match(words=[Word(u'5/CD')])]
>>> search('VB', parsetree('integrate x^2 + 3x + 5'))
[Match(words=[Word(u'integrate/VB')])]

# VB is a verb, NN is a noun, SYM is a symbol, CD is a number
sahilshekhawat commented 10 years ago

Random Example button is not working on Firefox. Can anyone check it? Maybe it's just me.

lidavidm commented 10 years ago

It's because that button is a link embedded in a button tag, which technically isn't allowed (thus it doesn't work in Firefox). Someone would have to remove the outer button and style that link to look like the other buttons.