Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Calculus in python
Post: RE: Calculus in python

I'm running into division by zero when b=1.  This formula works in that case: a / ( c * 1.05 ) But is there any way to gracefully use the same formula regardless of the value of b?  I'm working in t...
pythonforumrocks Data Science 13 13,983 Mar-24-2017, 03:59 PM
    Thread: Calculus in python
Post: RE: Calculus in python

Awesome! integrate.quad(lambda x: ((a*b/c) * 1.05**(-x))/(b-1), 1, b) Even better is that you pointed out I don't need to use calculus at all: (-(a*b/c) / math.log(1.05) * ( 1.05**-b - 1.05**-a ))/...
pythonforumrocks Data Science 13 13,983 Mar-22-2017, 09:08 AM
    Thread: Calculus in python
Post: RE: Calculus in python

Well, my goal is to get the same output from a python expression that I get from Wolfram Alpha but I'm getting different output.  With: a, b, c = 2, 5, 2 I get ~17.30 from this (a one-liner is bette...
pythonforumrocks Data Science 13 13,983 Mar-21-2017, 03:26 PM
    Thread: Calculus in python
Post: RE: Calculus in python

I have to confess I'm a bit lost.  What would you say is the simplest python expression of what I've been doing in the Wolfram Alpha widget?
pythonforumrocks Data Science 13 13,983 Mar-20-2017, 06:25 PM
    Thread: Calculus in python
Post: RE: Calculus in python

I'm getting a different output from the wolframalpha.com widget compared to your functions above.  With: k, a, b = 5, 1, 5 and: k = a * b / c I get 4.32605 from the widget by using: f(x) = ( a * ...
pythonforumrocks Data Science 13 13,983 Mar-20-2017, 03:49 PM
    Thread: Calculus in python
Post: RE: Calculus in python

I don't see how the range ("from" and "to" on the wolframalpha.com widget) should be specified.  Here's my formula: f(x) = ( a * b ) / ( c * 1.05^x ) from = 1 to = b http://www.wolframalpha.com/widg...
pythonforumrocks Data Science 13 13,983 Mar-20-2017, 12:15 PM
    Thread: Calculus in python
Post: Calculus in python

I don't have a great understanding of calculus (or python) but I need to find the average value of a curve for a project.  I've been using a widget from wolframalpha.com.  Can I duplicate that in pyth...
pythonforumrocks Data Science 13 13,983 Mar-19-2017, 11:39 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020