## Math problems

**Moderator:** English Moderator Team

### Math problems

Does anyone here have a good knowledge of mathematics? I need some simple help for understanding few things about trigonometry and integration.

### Re: Math problems

I might be able to help you.

### Re: Math problems

Difficult to explain, so I've made these pics in attachment.

One is integration problem. Given the function values, how would you determine the function, and how would you calculate the grey surface area using calculus. (I know it's an obvious circle, but I need calculus method).

Second pic represents my basic not-understanding of trigonometric functions. It's all clear with right angeled triangle, but what are sin(), cos(), and tg() functions (triangle sides relation) when all angles are different, and none is 90 degrees angle?

in right angle triangle, an angle between adjacent and hypotenuse side (lets call it alfa) is sin(alfa)= opposite side/hypotenuse. But what if my triangle is like in the picture? Mind that:

a != b != c

and that:

A != B != C

Thx

EDIT:

actually, the angle is arcsin(alfa) [or 1/sin(alfa)], but you get the point...

One is integration problem. Given the function values, how would you determine the function, and how would you calculate the grey surface area using calculus. (I know it's an obvious circle, but I need calculus method).

Second pic represents my basic not-understanding of trigonometric functions. It's all clear with right angeled triangle, but what are sin(), cos(), and tg() functions (triangle sides relation) when all angles are different, and none is 90 degrees angle?

in right angle triangle, an angle between adjacent and hypotenuse side (lets call it alfa) is sin(alfa)= opposite side/hypotenuse. But what if my triangle is like in the picture? Mind that:

a != b != c

and that:

A != B != C

Thx

EDIT:

actually, the angle is arcsin(alfa) [or 1/sin(alfa)], but you get the point...

### Re: Math problems

(Say, is this your homework or something?)

To get the function, you need the equation of the circle: https://en.wikipedia.org/wiki/Circle#Equations

And then transform it so that one side will be y by itself. (And that the other side will not contain y.)

As Wikipedia writes, sin,cos,tg are functions of an angle by itself, and the right-angled triangle is only needed for the definition: https://en.wikipedia.org/wiki/Sine#Righ ... definition

I.e. the sin,cos,tg of an angle in your triangle (or anywhere) is the same as the sin,cos,tg of an angle equal to it in a right-angled triangle, provided that such a triangle exists, i.e. the angle is less than 90°.

But there is another definition, which works for any angle: https://en.wikipedia.org/wiki/Sine#Unit ... definition

If you want relations between angles and sides of arbitrary triangles, you can use these:

https://en.wikipedia.org/wiki/Law_of_sines

https://en.wikipedia.org/wiki/Law_of_cosines

Actually, the angle is alfa = arc sin(opposite side/hypotenuse).

Also, please don't use "1/sin" for arc sin.

In the "sin

Although the use of "sin

Coco wrote:One is integration problem. Given the function values, how would you determine the function, and how would you calculate the grey surface area using calculus. (I know it's an obvious circle, but I need calculus method).

To get the function, you need the equation of the circle: https://en.wikipedia.org/wiki/Circle#Equations

And then transform it so that one side will be y by itself. (And that the other side will not contain y.)

Coco wrote:Second pic represents my basic not-understanding of trigonometric functions. It's all clear with right angeled triangle, but what are sin(), cos(), and tg() functions (triangle sides relation) when all angles are different, and none is 90 degrees angle?

As Wikipedia writes, sin,cos,tg are functions of an angle by itself, and the right-angled triangle is only needed for the definition: https://en.wikipedia.org/wiki/Sine#Righ ... definition

I.e. the sin,cos,tg of an angle in your triangle (or anywhere) is the same as the sin,cos,tg of an angle equal to it in a right-angled triangle, provided that such a triangle exists, i.e. the angle is less than 90°.

But there is another definition, which works for any angle: https://en.wikipedia.org/wiki/Sine#Unit ... definition

If you want relations between angles and sides of arbitrary triangles, you can use these:

https://en.wikipedia.org/wiki/Law_of_sines

https://en.wikipedia.org/wiki/Law_of_cosines

Coco wrote:in right angle triangle, an angle between adjacent and hypotenuse side (lets call it alfa) is sin(alfa)= opposite side/hypotenuse.

[...]

actually, the angle is arcsin(alfa) [or 1/sin(alfa)], but you get the point...

Actually, the angle is alfa = arc sin(opposite side/hypotenuse).

Also, please don't use "1/sin" for arc sin.

In the "sin

^{-1}" notation (commonly found on calculators), the "-1" superscript means inverse function and not reciprocal.Although the use of "sin

^{-1}" also seems to be discouraged, exactly because of this confusion: https://en.wikipedia.org/wiki/Inverse_t ... s#Notation### Re: Math problems

(Say, is this your homework or something?)

No. I've finished my last homework a long time ago , however, I'm still interested in relearning a few things that I've missed in math class because I was young and uninterested back than, or the things that I haven't fully understood. So now I just browse forums on technical universities, and I'm trying to solve math exams they use for selecting new students. It's more fun than solving crossword puzzles, and I might find it useful someday

Actually, the angle is alfa = arc sin(opposite side/hypotenuse).

I meant that, my bad. And thanks for clarifying the rest.

To get the function, you need the equation of the circle: https://en.wikipedia.org/wiki/Circle#Equations

Uhm... I'll just read some more on the subject. Waaaay more

If anyone is interested, I have one more task. This one might be more interesting for programmers.

### Re: Math problems

Coco wrote:however, I'm still interested in relearning a few things that I've missed in math class because I was young and uninterested back than, or the things that I haven't fully understood.

Well, as they say, better late then never.

Coco wrote:If anyone is interested, I have one more task. This one might be more interesting for programmers.

What is it?

### Re: Math problems

How many numbers exist between 1 and 1.000.000 that are divisible by either 11 or 13, and no other number (except 1, and themself, of course)?

### Re: Math problems

Coco wrote:How many numbers exist between 1 and 1.000.000 that are divisible by either 11 or 13, and no other number (except 1, and themself, of course)?

Three numbers: 121, 143 (by both) and 169.

At least, that's what my basic code tells me. No guarantees the code is correct.

The code could probably be a lot better, to skip large blocks of numbers based on their properties.

No idea if there's a mathematical way to determine this.

Code:

**Spoiler:**show

Output:

**Spoiler:**show

### Re: Math problems

You forgot 13 and 11, or Ive formulated the question in a wrong way. However I think that is correct. Anything above 169 must be divisible by yet another number.

More questions? xD

More questions? xD

### Re: Math problems

Not related to topic, but just for fun, let's check out who thinks as a programmer and who as a mathematician. Write a simple code that sums the all previous numbers (and that number). For example sum(10) would be 1+2+3+...+10.

### Re: Math problems

Coco wrote:Not related to topic, but just for fun, let's check out who thinks as a programmer and who as a mathematician. Write a simple code that sums the all previous numbers (and that number). For example sum(10) would be 1+2+3+...+10.

As a programmer, when I need to use (that kind of) math, I Google. Then I find something like this, (N(N + 1))/2, and test+use that. Frequently, I search for a couple of solutions, read up on what's most accurate, fastest, recommended. In fact, even for very simple programming tasks I often look up things. Simply because what I know and remember may work but could be deprecated; could have new, better alternatives.

### Re: Math problems

Coco wrote:How many numbers exist between 1 and 1.000.000 that are divisible by either 11 or 13, and no other number (except 1, and themself, of course)?

Then we call that this number has P property

Norbert wrote:No idea if there's a mathematical way to determine this.

I'll try to proof it. Let 1<=N<=1.000.000 an integer. N=q

_{1}

^{k1}...q

_{r}

^{kr}in an unique way.

(https://en.wikipedia.org/wiki/Fundament ... arithmetic)

If N has P property, there is some q

_{i}= 11 or 13. Then, there isn't any q

_{j}!= 11 and 13. In other way, we have that q

_{j}!= 11, 13, 1, N, that divides N, in contradiction with P property of N.

So, N = 11

^{a}13

^{b}, where a,b>=0.

If a or b >=3, we have that 11

^{2}or 13

^{2}!= N and divides N, in contradiction.

Then we have a,b<=2.

We also proof that:

If a=2, then b=0 for similar reason.

If b=2, then a=0 for similar reason.

a+b>=1

Finally, (a,b)=(1,0),(1,1),(0,1),(2,0) or (0,2), and N = 11, 143, 13, 121 or 169.

### Re: Math problems

N(N+1) /2 would be math way. I remembered this after i wrote a small code which iterated through each number and adding it to the final sum. Then I figured this out and thought how math can sometimes be helpful (otherwise its a useless piece of crap ).

Now Im trying to figure out a way to sum all even (and only even) numbers via some formula, even if input is odd number. So if input is 7 for example the output should be 2+4+6=12. If input is 6,the result should be the same.

Now Im trying to figure out a way to sum all even (and only even) numbers via some formula, even if input is odd number. So if input is 7 for example the output should be 2+4+6=12. If input is 6,the result should be the same.

### Re: Math problems

Ratios between sums of even and odd numbers, their progression and difference towards the given number are interesting...

### Who is online

Users browsing this forum: No registered users and 2 guests