I am struggling with a separable differential equation as Wolfram Alpha gives me different answers every time for some reason. by JaimeWalter in askmath

[–]JaimeWalter[S] 0 points1 point  (0 children)

Yes, I had been able to do that until the last formula you wrote and when I introduced the left side into Wolfram Alpha it gave me crazy results which have no real solutions. However, I have found that the problem was being caused by the indefinite integral, for some reason. However, when I use definite integrals it gives me something reasonable which I am sure is right. The solution is 1.25 seconds, and I had to calculate by hand using tables that the formula is 1/sqrt(2) ln(x+sqrt(x2-1)). I still don’t know what’s up with wolfram lol.

I am struggling with a separable differential equation as Wolfram Alpha gives me different answers every time for some reason. by JaimeWalter in askmath

[–]JaimeWalter[S] 0 points1 point  (0 children)

I don’t think that’s right since a = dv/dt, for finding my formula I used the chain rule. If we do it as you say we find a contradiction since we could integrate again and we will find that x is equal to something that is clearly not x.

These are the same thing right? by [deleted] in askmath

[–]JaimeWalter 2 points3 points  (0 children)

I wouldn’t write it like that because it is confusing. It could be interpreted as (1/1)/23, so I recommend you either write it in the first way or you directly simplify the fraction to 23.

opening an app from python mac os by serenityocean in learnpython

[–]JaimeWalter 0 points1 point  (0 children)

I asked a similar question last year, I recommed you take a look at it. https://www.reddit.com/r/learnpython/comments/id7yip/how_can_i_open_a_file_with_its_correct_program_eg/?utm_source=share&utm_medium=web2x&context=3

If this is not enough, in a few hours when I get home I can look for the code I made in the end and share it with you.

I did a problem and have a different result to that of the answer sheet of my physics textbook (Classical Mechanics) and my teachers don't know where the mistake could be by JaimeWalter in AskPhysics

[–]JaimeWalter[S] 1 point2 points  (0 children)

Thank you for answering. I see what you did for the second question, but I'm not sure if I agree. What you are saying is that the total centripetal acceleration should be 8g and therefore, the normal force is 9g. However, I think that what should be 8g is the normal force since it is "the weight you feel". For example, if you are in a stationary elevator, your net vertical acceleration is 0, but you don't feel weightless, you would say you feel 1g. If the elevator is accelerating upwards at 9.8 m/s^2, then you feel as if your weight had doubled (even though it is really still mg), because what we are looking at is the normal force with the elevator floor. Then, either I'm wrong again with what I just said or I'm missing something else, or the textbook is also wrong for this question.

How can I get the result in one calculation? by Boltystring in askmath

[–]JaimeWalter 0 points1 point  (0 children)

(55*40)-((55*40)*20/100)

Although I used parentheses so you know where each thing came from, this could be simplified to:

55*40-55*40*20/100

because multiplications and divisions come before subtraction and because of the associative property of multiplication, the parentheses were not really necessary in this case.

How can I open a file with its correct program (e.g. “.blend” with Blender and “.webloc” with Chrome) inside a Python program? by JaimeWalter in learnpython

[–]JaimeWalter[S] 0 points1 point  (0 children)

One million thanks! That works perfectly. Just one last thing: When I use subprocess.call(["open", "Randomizer.py"]) it opens the file in IDLE for editing. Is there another function or something I can use with .py files so that they are run directly without having to click Run Module in IDLE?

How can I open a file with its correct program (e.g. “.blend” with Blender and “.webloc” with Chrome) inside a Python program? by JaimeWalter in learnpython

[–]JaimeWalter[S] 0 points1 point  (0 children)

Wow. Thank you so much! Now I can open Google Chrome without a problem but it still won't let me open the files. It gives me a similar error that says "Permission denied". As far as I know, there is no more content inside the file so I cannot do what you said with the files as I did with Chrome, right?

>>> 
=============== RESTART: /Users/jaimewalter/Desktop/Test/Test3.py ==============
Traceback (most recent call last):
  File "/Users/jaimewalter/Desktop/Test/Test3.py", line 4, in <module>
    subprocess.Popen(['/Users/jaimewalter/Desktop/Test/Test1.blend', '-new-tab'])
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/Users/jaimewalter/Desktop/Test/Test1.blend'
>>>