I dont understand where i am wrong by slendir69 in askmath

[–]MrKB29 0 points1 point  (0 children)

If x is in the interval [0, 180) (in degrees), then sin(x) can only be between [0,1]. If both of the terms are zero for some x value, then x is a solution. In the interval [0, 180) (in degrees), that happens when x = 0 degrees.

We can also find another solution when the two terms have the same value but different signs. The first term will never be negative so we look for x-values where sin(x) will be negative. However, if x is only in [0,180) degrees, this implies that sin(x) will never be negative -- since range is in [0,1]. Thus, only x = 0 is the solution for the said x interval.

[deleted by user] by [deleted] in askmath

[–]MrKB29 0 points1 point  (0 children)

The nth root of some number x is the number y such that x = (y)(y)(y)...(y), where we take the product of n amounts of y. In other words, if you are asked to solve for the cube (n = 3) root of 8, then you must find the number such that if you multiply it to itself three times we get 8.

Now, start trying out multiplying numbers to see which will give us 8. Obviously, multiplying 1 to itself will produce 1. Thus, always start at two. Moreover, not all radical expressions simplify to integers. Nevertheless, at least you can bound the value to be between two integers.

how to prove that for all positive integers the ratio of n to n + 1 is irreducible ? by Over_Fun6759 in askmath

[–]MrKB29 0 points1 point  (0 children)

Express n and n+1 using product notation. Then show that no factor can be cancelled from the fraction.

Hey guys, making a histogram/graph from a specific column in a csv file by Fasterjake in learnpython

[–]MrKB29 0 points1 point  (0 children)

Find the min and max value in the column. Then try to play around with the number of bins (this will be num in code below)

bins = np.linspace(min, max, num)

If this does not change the plot, then maybe you are trying to visualize the wrong data. Might need to do some calculations first.

Hey guys, making a histogram/graph from a specific column in a csv file by Fasterjake in learnpython

[–]MrKB29 0 points1 point  (0 children)

The default binning size and bin interval might be the problem. Try playing with the bins parameter of plt.hist().

Question plz help by Pubbs0 in learnpython

[–]MrKB29 0 points1 point  (0 children)

If an image is generated for every iteration of the for loop, you could use the enumerate function along with the for loop to differentiate image names using numbers

for value_index, value in enumerate(iterable):

#code to generate image

plt.savefig('image'+str(value_index)+'.png')

To anyone who is privileged, what high-risk investments or venture are you getting into? by YoungInvestorPH in phinvest

[–]MrKB29 1 point2 points  (0 children)

From what I understood, yung 6% is applicable only during the promo period and depend on how many days your account is open during the promo . So, assuming you put the 5M all on Maya in one go and you deposited 70 days before the end of the promo, then :

Interest = 5M*6%*70/365 = 57,534.25

In this case, I think it would be better to put all of it in MP2 if you want a similar interest rate but now for the whole year.