M
M
MrRangerYT2018-10-12 00:00:32
C++ / C#
MrRangerYT, 2018-10-12 00:00:32

How to make equations?

5bbfb97034fe1092117915.png
help me please

#include "pch.h"
#include <iostream>

using namespace std;
int main()
{
  float a, b, x, alpha, gamma;

  a = 0, 5;
  b = 3, 1;
  x = 1, 4;

  alpha = sqrt(abs(a*(x*x)*sin(2*x) + pow(exp, -2*x)*(x + b)));
  gamma = (1 / pow(cos(pow(x, 3), 2)) - (x / pow(pow(a, 2) + pow(b, 2), 1 / 3)));

  cout << a <<"\n"<< b<<"\n"<< x<<"\n";
  cout << alpha<<'\n';
  cout << gamma<<"\n";

}

It turns out an error
5bbfb9c2ee30f547484285.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2018-10-12
@Nipheris

Instead , split the expression into parts or format it on multiple lines to reduce parentheses. And by the way, yes, you painted the errors in great detail. Right here without problems, even in Russian translation it is normally readable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question