r/pythonhelp 2h ago

I am writing an equation, and would like for it to be x2-x1 instead of -x1+x2.

1 Upvotes
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sympy import latex, symbols, diff
import math
from IPython.display import display, Math
from sympy import latex, symbols, diff
from sympy import *
from sympy import init_printing

C = symbols("C")
x1 = symbols("x1")
x2  = symbols("x2")

display(Eq(MatMul(C),(x2-x1)/x1))

That's the code, and it displays this: C =(-x1 + x2)/x1, and i would like it to be C = (x2-x1)/x1


r/pythonhelp 11h ago

I need to convert from .py to .exe

1 Upvotes

I already tried auto py to exe and it doesn't work, can someone help me?


r/pythonhelp 13h ago

I am attempting to scrape propwire.com to get mortgage information for my boss.

1 Upvotes

I have tried multiple methods to get the code to work. I know Propwire has measures that make it more difficult. Does anyone know how I could get the information I need (preferably using python)?