Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
slope intercept form
#2
I don't really see the point in the current code you have. It looks like your goal is to take in a linear function that the user gives the program, and it will rearrange it to be graphed as x being the input and y the output. So basically solving for y in relation to x. The current code is hard coded, and doesn't do anything, to progress towards your goal I'd like to give some suggestions on how you could build the program. First you should create a part of the program to take in user input. Look into string.strip and string.lower as I think they'd be useful for simplifying the equation to be examined. So then the equation can be passed to the part of the program which is to rearrange the program. Think about how you yourself solve do this, and translate that into code.
A couple hints if you want them: Try separating my operators (+, -, /, etc.). Sorting the equation into parts such as constants and variables.
Hope this helps!
Reply


Messages In This Thread
slope intercept form - by Dasiey12 - Jun-14-2020, 12:31 AM
RE: slope intercept form - by SheeppOSU - Jun-14-2020, 12:41 AM
RE: slope intercept form - by ibreeden - Jun-14-2020, 08:36 AM
RE: slope intercept form - by buran - Jun-14-2020, 08:57 AM
RE: slope intercept form - by ibreeden - Jun-14-2020, 03:21 PM
RE: slope intercept form - by Dasiey12 - Jun-14-2020, 05:09 PM
RE: slope intercept form - by SheeppOSU - Jun-14-2020, 06:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem about slope in python script for bitcoin trading fisher_garry 1 2,556 Sep-02-2020, 01:39 PM
Last Post: fisher_garry
  How to intercept python method calls? DineshBhat 0 2,548 Jul-15-2019, 03:46 AM
Last Post: DineshBhat

Forum Jump:

User Panel Messages

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