Computer Science, asked by maths511, 10 months ago

Write the corresponding java statement /expression for the following mathematical function:-
1-(b+b^2-4ac)/2a.
2-((0.05-2y^2))/((x-y)).
3-3/8 √(b^2-c^3 ).
4-a^3+b^4+c^5.
5-pq√3+0.02√r.
ICSE CLASS 10

Answers

Answered by rakeshchennupati143
105

Answer:

import java.io.*;

inport java.util.*;

import java.Math.*;

public class maths{

     public static void main(String args[]){

           int a,b,c,x,y,p,q,r;

           ( b + ( pow( b , 2) - ( 4 * a * c ) ) ) / ( 2 * a );

           ( ( 0.05 - pow( ( 2 * y ) , 2 ) ) / ( x - y ) );

           ( 3 / 8 ) * sqrt ( ( pow ( b , 2 ) - pow ( c , 3 ) )

           pow ( a , 3 ) + pow( b , 4 ) + pow( c , 5 );

           ( ( p * q ) * sqrt ( 3 ) ) + ( 0.02 * (sqrt ( r ) ) )

     }

}

Explanation:

since you did not gave any values for those variables i just wrote those equation without any values passing to them

Similar questions