17 Topics

Member Avatar for
Member Avatar for ddanbe

I have strings representing an angle, of the format ddd°mm'ss''. I want to get to the three constituents: degrees, minutes and seconds. I first chopped off the seconds like this: `angleString = “ddd°mm'ss''”;` `string str = angleString.Substring(0, angleString.Length - 2);` Then I tried to do this, to get to the …

Member Avatar for JOSheaIV
0
240
Member Avatar for Benny_1

Hi. I am making a really simple program to refresh my knowledge in java (which is obviously needed). When I click the screen, I want a bullet to appear in the center and move towards the point I clicked. Right now, when I click on the left half the bullet …

Member Avatar for JamesCherrill
0
198
Member Avatar for Auroch

Hi, I have the following problem: Text file "strlines.dat" contains series of the following information of straight lines: 1) coordinate of one line's point 2) angle slope It looks like (x,y) 45 deg: 2,6 60 4,7 45 2,1 30 After adding this information to associative container verify it and find …

Member Avatar for Auroch
0
207
Member Avatar for user4678

I have the code for the first part of a problem, which is to write a program that reads an angle x (in radians) from the keyboard. Then, in a function, compute the cosine of the angle using the first five terms of this series. Print the value computed along …

Member Avatar for duskoKoscica
0
6K
Member Avatar for user4678

I'm trying to create a program that computes the values of cos using the Taylor Series as long as the absolute value of a term is greater than 0.0001 and prints the number of terms used in the series approximation. My code is the following and as of right now …

Member Avatar for Labdabeta
0
623
Member Avatar for schroaus

I have looked around on the internet a little bit, but I am unable to find a function or equation for inverse/arcsine. I was able to find Inverse Cosine, but inverse sin doesn't seem to exist. Does anyone know how to use inverse sine in delphi?

Member Avatar for pritaeas
0
363
Member Avatar for vegaseat

This example calculates timed x, y points of a projectile motion that can be used for plotting or other calculations.

Member Avatar for ddanbe
3
6K
Member Avatar for Sandhya_1

Hi, I m developing an application using kinect.The IDE I use is Visual studio 2012 and kinect SDK 1.8.I m developing using vc++ I want to overlay an image on the person tracked when the person turns 180 degress to kinect. ie the person is not facing the kinect. how …

0
115
Member Avatar for blindislands

My teacher wants me to write a function called double cos(float); to compute the cos of an angle (given in radians) using the Taylor series shown. Your function should find the value of the cos for ANY angle (preferred) or at least angles up to 2 PI (Hint: if you …

Member Avatar for blindislands
0
548
Member Avatar for Mbot

Hey, I am having some difficulty drawing my lines correctly using flash.Box2D. The fault isnt with box2D, rather with my math. I attached a swf with the basic engine as well as some angles drawn on it. Why doesnt the lines want to draw correctly for anything greater than +-40 …

Member Avatar for Mbot
0
147
Member Avatar for chirag_mittal

Hello, I was given a question a few few days back to write a program that lets a user enter a value for an angle and quadrant in which the angle lies is printed using switch statement. I was able to make this program using if-else very easily but making …

Member Avatar for chirag_mittal
0
464
Member Avatar for arjen

hello guys.. can you help me on how to make 45 angle shoot or 45 angle movement of bullet in vb.net

Member Avatar for codeorder
0
195
Member Avatar for Dharni.Gurnani

I am currently working on a project in which I need to check the similarity between images... I have started of trying the cosine similarity.. the formula available online needed to be modified since it was only for text and in images the 1st pixel of one image will have …

Member Avatar for JamesCherrill
0
293
Member Avatar for tKc

We are required to make a c++ program to determining the cos of x by using the taylor series. i have made my program and it works pretty good but we are also required to stop the loop after the terms in the taylor series gets lower than .0001. any …

Member Avatar for Nathaniel10
0
376
Member Avatar for Xufyan

[CODE] class character1{ public static void main (String args[]){ float a,b; a=Integer.parseInt (args[0]); b=(float)Math.acos(a*(180/3.14)); System.out.println (b); } }[/CODE] the above program isn't working when entering angle other than 1 , why ?

Member Avatar for tesuji
0
595
Member Avatar for DawnyB

For my intro to programming class i have to design a game where a ball is shot at an angle and hits squares that are worth points. I have two questions 1.How do you get the ball to move. I was given this code but I don't know if I …

Member Avatar for Archenemie
0
1K
Member Avatar for ddanbe

If you have to convert an angle from degrees to radians and way back, here are some utility functions in C#, along with a program to test them. I made use of the "out" keyword here, which allows a function to return more than one value. An alternative would be …

0
340

The End.