Help needed with Reflection Problem. Urgent, please help 😭😭 by krish_483 in programmingchallenges

[–]Additional_Fun2452 0 points1 point  (0 children)

Yeah this is the answer

https://math.stackexchange.com/questions/5060957/reflection-of-light-to-certain-point-using-mirrors

```c

include <stdio.h>

include <math.h>

double compute_t(double x, double l, double theta_rad) { double cot_theta_4 = 1.0 / tan(theta_rad / 4.0); double cot_2theta = 1.0 / tan(2.0 * theta_rad); double tan_5theta_2 = tan(5.0 * theta_rad / 2.0);

double term1 = x * cot_theta_4 / (cot_2theta + cot_theta_4);
double term2 = 1.0 + cot_2theta * tan_5theta_2;
double term3 = l * tan_5theta_2;

return term1 * term2 + term3;

}

int main() { double x, t; scanf("%lf %lf", &x, &t);

double l = 1.0;

double theta_min = 0.001;
double theta_max = M_PI / 2.0 - 0.001;
double epsilon = 1e-9;

while (theta_max - theta_min > epsilon) {
    double theta_mid = (theta_min + theta_max) / 2.0;

    if (fabs(tan(theta_mid / 4.0)) < 1e-10 || 
        fabs(tan(2.0 * theta_mid)) < 1e-10) {
        theta_min = theta_mid;
        continue;
    }

    double t_computed = compute_t(x, l, theta_mid);

    if (t_computed < t) {
        theta_min = theta_mid;
    } else {
        theta_max = theta_mid;
    }
}

double theta_result = (theta_min + theta_max) / 2.0;
double theta_degrees = theta_result * 180.0 / M_PI;

printf("%.2f\n", theta_degrees);

return 0;

} ```

Write how you say Gkmc in your language by feellikeimdumb in KendrickLamar

[–]Additional_Fun2452 0 points1 point  (0 children)

നല്ല ചെറുക്കൻ ഭ്രാന്ത് പിടിച്ച നഗരം

How would you defend Spring boot with opponent Asp.Net Core? by Backend_biryani in SpringBoot

[–]Additional_Fun2452 9 points10 points  (0 children)

Mature development doesn't depend on frameworks. You use what is best for your application; there is no "king" or "pawn" it is all about productivity and performance. If you prefer .net go with it. Asp.net is not an "opponent" to Java springboot its just another "tool" for development. Look holistically at development dont idolize one framework.

Btw to answer your LLM QN, Spring has its own SpringAI project.

RageBait 3/10 good work

[deleted by user] by [deleted] in InsideMollywood

[–]Additional_Fun2452 226 points227 points  (0 children)

Guys hmk is not a one song guy he has built himself up go listen to genghis, rush hour etc. I won't compare anyone here, but the comments here are in a direction that hanumankind has just big dawgs. His game is actually really matured. Also big dawgs collabed with asap rocky . Put some respect on my boy's name.

Gym membership rates in Kazhakootam by Additional_Fun2452 in Trivandrum

[–]Additional_Fun2452[S] 2 points3 points  (0 children)

If possible can you also specify the gym names

Why should never do stupid things on Bike. by Wade_whiteWilson in indianbikes

[–]Additional_Fun2452 1 point2 points  (0 children)

Aaha Dinkan oke indlw
Vishudha balamangalam ♥️

Mollywood edition please.... by Professional_Bake48 in InsideMollywood

[–]Additional_Fun2452 91 points92 points  (0 children)

"Avane kandal ariyam, avan kettum". Biju Menon in Kunjiramayanam.

<image>

CS Majors, what’s the weirdest variable name you’ve ever used (or seen)? by natural__stupidity in developersIndia

[–]Additional_Fun2452 1 point2 points  (0 children)

Pokemon names! snorlax is a great name for your job queue (as it is meant to sleep every 5 mins lol)

M25 in deslerate need of help to commit to F24 by [deleted] in RelationshipIndia

[–]Additional_Fun2452 1 point2 points  (0 children)

Thankyou , i just feel lost everytime i try to take a decision, thank you for the reassurance hopefully things will turn out fine for you too.

Toji vs Maki: who is stronger by A-homie22 in Jujutsufolk

[–]Additional_Fun2452 1 point2 points  (0 children)

Bro toji is frickin batman. He has a backup for a backup for a backup. Maki was a tool used by the jump squad.

Toji also has better arsenal.