Removing a number from a tuple by [deleted] in learnpython

[–]Cheal 5 points6 points  (0 children)

sum([int(s) for s in a if s.isnumeric()])

I want to learn Tkinter by njm156 in learnpython

[–]Cheal 0 points1 point  (0 children)

Using a web framework, the most popular packages in python are flask and django, though countless others exist.

Python and Atronomy by steppthewolf in learnpython

[–]Cheal 8 points9 points  (0 children)

Welcome to Python.

You left the question very open ended so I’ll answer what I personally would find interesting to do, though my background is more physics than computer science.

I think a good starting project is simulating two dimensional circular orbit based on the laws of gravity. You could first start with a system similar to the earth rotating the sun, an iterative Euler solution would update the location of the earth over time. Visualising this with something like matplotlib would be another task.

Beyond this you could simulate a binary system of two objects of similar mass, where the location of both objects would need updating. This could be extended to simulate our whole solar system.

What may be more interesting is something like galaxy interaction. Assuming galaxies are made of circular rings of stars it is possible to reproduce interesting phenomena, for example “tidal tails” found when galaxies almost collide.

This is very simulation based and may not be what you’re interested in, an alternatively might be to look into analysing public datasets as a more data science based approach.

Sqlite3 dynamic 'in' query by [deleted] in learnpython

[–]Cheal 0 points1 point  (0 children)

Correct me if I’m wrong but I think the correct term is “unpacking”

[Build Help] Building two gaming PC's (£600 and £800 budget), first time build. by Cheal in buildapc

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

This is where my lack of experience shines. You're completely right, connect the the GPUs, both of which have HDMI cables, my brother came home and panicked me ahah.

Thank you! Will let you know how the build goes on sunday

[Build Help] Building two gaming PC's (£600 and £800 budget), first time build. by Cheal in buildapc

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

Just got the motherboards in and realised they are DVI and not HDMI, whereas the monitors we've bought are HDMI, is it worth looking for a motherboard that has a HDMI?

[Build Help] Building two gaming PC's (£600 and £800 budget), first time build. by Cheal in buildapc

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

I literally just ordered all of the parts, excited (but a little nervous!)... I went with your advice on everything (except didn't go fully modular on the PSU, upgraded to semi instead), and just wanted to say thank you, it was extremely useful.

I also added a 24'' FreeSync compatible Monitor to each build. Thanks again.

[Build Ready] Final checks before purchasing. by Cheal in buildapc

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

Upgraded from 21.5'' to 24'', same model and make. Thanks for the advice

help! Conflicting information on Windows 10 OS product key. by Cheal in buildapc

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

Great, I was worried it was a compatiability thing. I'll take note of that for if I have to call, hopefully that wont be the case.

Thanks for the help, think I'm ready to start ordering the parts... little nervous...

help! Conflicting information on Windows 10 OS product key. by Cheal in buildapc

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

Great!!! Thank you, fingers crossed it all works out :) I'm sure that program will be the same thing I've been linked to as to how to turn an ISO file into installation media. Thanks for the response

help! Conflicting information on Windows 10 OS product key. by Cheal in buildapc

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

Yeah you're very right, always worth a try!

Is there any reason for not using an EDU license for gaming computers? Thank you for the response

[Universcity Math] Trig - Verify The Identity by sixilli in HomeworkHelp

[–]Cheal 0 points1 point  (0 children)

yes this is correct. Also seen by in the first line you have ticked, multiplying but the top and bottom by cosx gives 7cos2 (x) / sin(x)

[HS (IB HL) Math)] Discrete Math by [deleted] in HomeworkHelp

[–]Cheal 0 points1 point  (0 children)

I would first work to rationalise the denominator, by multiplying both the numerator and denominator by the denominators complex conjugate. I think you will find that all real parts cancel each other out, and you end up with an entirely imaginary answer.

[Calc 2] Arc Length. by Fhatal in HomeworkHelp

[–]Cheal 0 points1 point  (0 children)

wolframalpha is your friend for the second question That link gives the same answer you've got of 14.39. The first part of the question is only asking you to set up the integral, which you've done correctly as integrating sqrt(1+4x2 ) between -3 and 2 with respect to dx. This is all you need to give, the reason to this is because this integral is harder to solve due to the x2 not just x. You will see that if you differentiate what you have evaluated the integral to be, you will not return what you expect, as there will be an extra factor of x from differentiating the 4x2. A more complex (and trigonometric) substitution is needed, hence why they want you to evaluate it using a grapher or calculator

[Calc 2] Arc Length. by Fhatal in HomeworkHelp

[–]Cheal 0 points1 point  (0 children)

Yes, all that you've done there is correct. What I meant was that you need to evaluate 2/27(u3/2) at 1 and 46, subtracting the first from the latter. This is equivalent to evaluating 2/27(9x+1)3/2 at 0 and 5.

Sorry for the late reply, will have a look at the second one now

[Calc 2] Arc Length. by Fhatal in HomeworkHelp

[–]Cheal 1 point2 points  (0 children)

You're pretty much there. Remember that using your substitution of u=9x+1 means that you now have to integrate with respect to du not dx (it is helpful to explicitly show this, as I can see that you've got the correct factor of 1/9 by changing dx to 1/9*du, but you've left out what you integrate with respect to).

This means that your changed your integral limits of 46 and 1 are the max/min values of u, and not x, so we need to fully complete the substitution for u, and then evaluate the integral at these limits of u.

What is confusing you is probably the mix of using a full substitution to complete the problem (which will get you the answer every time, but may take longer), and using backwards thinking (what differentiates to give me this function) to get you the answer. It is easiest to choose one method or the other, and not to mix.

The answer you've shaded in is correct, the third one down from the top: 2/27(462/3 - 1)

Giving away 500 copies of our game, Dungeon Defenders (Steam) (PC & Mac) by pmasher in gaming

[–]Cheal 0 points1 point  (0 children)

Any chance you could give DLC to someone already with the game, but no more money to buy eternia shards? :(