Загрузка...

Guys I have a problem, someone can help with the code, probably the module did the wrong thing

Thread in C/C++ created by dracon4ik1 Oct 10, 2021. 227 views

  1. dracon4ik1
    dracon4ik1 Topic starter Oct 10, 2021 46 Mar 23, 2019
  2. dracon4ik1
    dracon4ik1 Topic starter Oct 10, 2021 46 Mar 23, 2019
    у меня мозги плавятся
     
  3. dracon4ik1
    dracon4ik1 Topic starter Oct 10, 2021 46 Mar 23, 2019
    не совсем понимаю как это сделать
    The post was merged to previous Oct 10, 2021
    помоги пожалуйста
     
  4. Кодер
    Замени свои | на функцию abs()
     
    1. dracon4ik1 Topic starter
      Кодер, [IMG] извини, возможно я тупой, новичок в этом
    2. dracon4ik1 Topic starter
      Кодер, не мог бы ты мне помог с этиммоментом
    3. Rvge
      dracon4ik1,
      y = pow((z + x) / cos(x) + sqrt(fabs(sin(x) * cos(x))), 2) + 16z;
  5. dracon4ik1
    dracon4ik1 Topic starter Oct 10, 2021 46 Mar 23, 2019
    не работает
     
    1. kk00pr
      dracon4ik1, ты скобку нк так поставил
    2. dracon4ik1 Topic starter
      @Umpstample_One, покажи где я слепой
  6. МенталДора
    МенталДора Oct 10, 2021 Banned 1487 Sep 29, 2021

    #define _CRT_SECURE_NO_WARNINGS
    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>

    int main()
    {
    system("chcp 1251 > nul");
    double x, y, z;
    printf("Введите x: ");
    scanf("%lf", &x);
    printf("\nВведите z: ");
    scanf("%lf", &z);
    y = pow(((z + x) / (cos(x))) + pow((fabs(sin(x) * cos(x))), 0.5), 2) + 16 * z;
    }


    The post was merged to previous Oct 10, 2021
    перепроверь правильно ли я функцию написалa, по идее правильно, но могла что-то пропустить
     
    1. View previous comments (3)
    2. dracon4ik1 Topic starter
    3. dracon4ik1 Topic starter
  7. dracon4ik1
    dracon4ik1 Topic starter Oct 10, 2021 46 Mar 23, 2019
Top
Loading...