Write a program which can perform addition, subtraction, and multiplication of single-variable polynomials with real coefficients in the form: a0 + a1x + a2x 2 …. an-1x n-1 + anx n . The input polynomials are entered by a user as strings of characters e.g., -0.867x^23 + 2.45x^23 – 64.654x^11 + 356.897x^24 and this format ..
I would like call python functions from C++. I am using Ubuntu 20.04 and have python 3.8 installed. The path where Python.h is located is /usr/include/python3.8/Python.h, which I found using the command line sudo find / -iname python.h in the terminal. In order to get started I tried to run the easiest code in code::blocks: ..
I’m using subprocess module to run an executable: subprocess.call(‘file.exe’,shell=True) It still opens up the cmd.exe window. If I rename the executable to something else like file2.exe Then it works and the cmd window doesn’t open and all output is directed to the integrated terminal in the IDE. Has Windows 10 added file.exe to some list ..
I recently installed the python package faster_than_requests ver 21.3.3 from pypi on python ver 3.9.2 on windows. Upon importing the package as mentioned in the docs, I get the following traceback >>> import faster_than_requests Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:OSWindowsPython-3.9libsite-packagesfaster_than_requests__init__.py", line 7, in <module> from . faster_than_requests import ..
My ultimate goal is open my vpn connection application before the session expires, and either refresh it or close it and reopen it to refresh it again. That got my thinking, how do computer programs interact with the rest of the computer? How can I tap into that? I don’t want to simulate a click ..
So, I’m attempting to sort a rather long list of random variables, and for some reason, after I apply a sort function to my list of variables, they remain unchanged when I print them. This causes my graphs at the end of the code to be much less smooth because a lot of values are ..
I’m using the pg_trgm for similarity search on PostgreSQL DB and I need to return the results to the PostGIS table, but I’m getting this programmer error, I learned that this error is related to syntax of the sql query I tried same query in PostgreSQL and it worked, but couldn’t get it to working ..
My python program about radical numbers that i created isnt working as i want. √72 = 6√2. But my program shows: 2√18. Lets say that a√b is a variable. I want ‘b’ to be the least value. How can i do that? My program is so big so i can’t write all of them. So ..
I am sure about that there aren’t any mistakes in my class. I can’t give all codes because the program is big. The program is about radical numbers. Such as converting √8 to 2√2. I am going to use this class in my main python file. Here are the codes: def kokluyazdir(self,number): i = 1 ..
So i have a bot in python to automate a task…. It basically clears notifications. I want to know the number of notifications receieved during the idle session. is there anyway to grab the number of notifications. Thank You Source: Windows..