• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Math - sincostan

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Question from MindD - 45.

Which methods does java.lang.Math include for trigonometric computations ?

a - sin()
b - cos()
c - tan()
d - aSin
e - aCos()
f - aTan()
g - toDegree()

Answer are a,b and c. I remembered somewhere I read that d,e and f are part of the answers. I just couldn't find where I have read that from. I am 70% sure about this and need 30% from your confirmation.

What do you think ?
 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kay Liew:
Question from MindD - 45.

Which methods does java.lang.Math include for trigonometric computations ?

a - sin()
b - cos()
c - tan()
d - aSin
e - aCos()
f - aTan()
g - toDegree()

Answer are a,b and c. I remembered somewhere I read that d,e and f are part of the answers. I just couldn't find where I have read that from. I am 70% sure about this and need 30% from your confirmation.

What do you think ?



Answers a,b and c are correct and d,e and f are wrong because java.lang.Math class has three methods asin, acos and atan .

Note the capital letters in aSin , aCos and aTan in the mock question while the actual methods in Math class have small-case letters as above.

and option g which is toDegree is wrong too because it should be toDegrees


Hope that helps...
[ January 26, 2005: Message edited by: Jay Pawar ]
 
Kay Liew
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
argg .. overlooked that aTan and atan.

Thanks ..
k
 
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic