I
I
IndusDev2018-05-04 18:52:48
Pascal
IndusDev, 2018-05-04 18:52:48

Write a program to calculate a function?

5aec81f1a2acd312552495.png
Here is such a problem.
The calculation itself was written as this line:
z:=(exp(x*x)/x)+(sqn(4*x)/sin(x)))));
For some values, for example 35, displays "Not a number".
I tried to solve it this way:

write('Введите x: ');
  read(x);
  while ((sqrt(((ln(4*x)(((sqrt(sqrt((ln(4*x)/sin(x)))))) < 0)  or (x = 0)) do
    beginите x повторно: ');
      read(x);
    end;

(Do not scold for a huge pile and govnokod).
What's wrong :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2018-05-04
@Rsa97

Yes, in fact, everything is wrong in the second term, and the scope of the function is incorrectly set.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question