R
R
Rokis2015-10-18 11:39:47
Pascal
Rokis, 2015-10-18 11:39:47

How to solve a complex equation in Pascal?

Can you please tell me how to solve this equation in Pascal? Wi015TVGE5E.jpgIn mathematics, absolute zero.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rokis, 2015-10-18
@Rokis

Found the answer

var a,b,c,d,e,f,x:real;
begin
writeln('Введите a,x');
readln(a,x);
if a*x=-3 then write('c не определено, деление на 0')
else
 begin
  b:=x/sqr(3+a*x)+3*x;
  d:=x*sin(x)/3-1;
  if cos(x)<0 then
  write('c не определено, отрицательное число в вещественной степени')
  else if cos(x)=0 then write('c не определено, деление на 0')
  else
   begin
    e:=exp(ln(cos(x))*x);
    f:=d*d*d/e;
    c:=b*f+a+2;
    write('c=',c:0:3);
   end;
 end;
end.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question