801 Topics

Member Avatar for
Member Avatar for ayeshawzd

how can i find value of cos without using math library of c# .......plz send me code example or formula by which it ia possible i thank full to u

Member Avatar for ayeshawzd
0
485
Member Avatar for sacredfaith

Warm greetings! My name is Avery White and I am absolutely in love with Jesus, and I'm working on making Him the center of my life! I'm a 23 year old "super senior" at Texas A&M University, and I'm majoring in Computer Engineering with minors in Mathematics and English. I'm …

Member Avatar for CJesusSaves
0
187
Member Avatar for Morexod

Hello, I'm a complete alien so some questions may be too evident. I'd like to get a degree in computer graphics (something like physically-based animation and rendering) in a major American university. I'm a Russian national with German residency, never been to US. I already have a degree in applied …

Member Avatar for Rashakil Fol
0
121
Member Avatar for NargalaX

Hey, I'm making a math bot, and when you type in your equation it converts the numbers to doubles right away. Except, when doing any equation with a decimal, the decimal is ignored. Example 2 + 2 = 4 (No decimals, it works fine.) 2.2 + 2 = 24 (Decimal …

Member Avatar for NargalaX
0
287
Member Avatar for pritam_1181988

Q.28. Write a program to produce the following form. 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 $ $ $ $ $ $ $ $ $ $ $ …

Member Avatar for peter_budo
0
123
Member Avatar for vegaseat

This is an update of an earlier version. In this version the string containing the approximated pi value is created directly from the iteration of the generator. This way the program is simplified and can be used with Python2 and Python3 ...

1
595
Member Avatar for Nerathas

Hello, I have this program that simplifies a fraction by calculating the greatest common divisor. So the fraction 8/4 (largest common divisor = 4) 8/4 4/4 => result would be 2/1 (fraction simplified) My problem is my method calculated this greatest common divisor. But now that value has to be …

Member Avatar for ddanbe
0
172
Member Avatar for Chargerfan

how do i retrieve complex numbers (a + jb) so that just a appears in one textbox and just b appears in another textbox?

Member Avatar for privatevoid
0
102
Member Avatar for samarudge

Hi, What is the function/opperator to calculate a power with C# I tryed [code=c] powerof = anumber ^ anothernumber; [/code] and that clearly doesn't work (1^3 is 2, 2^3 is 1 etc.) How do I do it??? I looked under [icode]Math.[/icode] functions and there was nothing and I spent ages …

Member Avatar for ddanbe
1
184
Member Avatar for ddanbe

Whenever you hear the word recursion, factorials or Towers of Hanoi are never far away. Well here they get mentioned, because we are not going to talk about these guys at all! Iteration and recursion are in fact quite similar: they both loop until a certain condition is met. As …

2
3K
Member Avatar for Diamonddrake

I need to be able to take a point on an image and convert it into a point relative to a picturebox with the pictureSizeMode set to zoom here is the code that the picturebox uses to scale and center the image [CODE] Size size = this.image.Size; float num = …

Member Avatar for Diamonddrake
0
287
Member Avatar for j_cart007

A local book shop that has approached you to build them a computerised stock control system and point of sale system. The shop sells a large number of books which are classified into genres: Non-Fiction (Science,Mathematics, Humanities, Languages, Arts), Science Fiction (SciFi, Steampunk, Apocalyptic, Time Travel), Crime Fiction (Legal, Spy, …

Member Avatar for j_cart007
-1
103
Member Avatar for rzhaley

im supposed to write a code that you prompt to enter 10 different grades then drop the minimum value, while computing the average of the remaining 9. I'm getting infinity as the answer when I run the program so I know my min is messed up, somewhere but i cant …

Member Avatar for Geekitygeek
0
233
Member Avatar for rukshilag

I am a beginner to java - my university course module requires me to do an assignment - that is choose a system and build one. i have chosen "Student Grading System" - this wont require a database. i need to just enter student marks and thereby determine that subject …

Member Avatar for Ezzaral
0
107
Member Avatar for Mafia619

Hey, I've got an assignment from my computer teacher in school. I've got to make a program that displays the prime numbers in a range and also display the number of prime numbers that are present. And i'm only supposed to use the basic header files.....that means the program should …

Member Avatar for VernonDozier
0
313
Member Avatar for denizen08

[CODE]#include <cmath> long double NR(long double sample) { return (abs(f(sample)))<=1e-10 ? sample: NR( (sample - f(sample)/fp(sample))); } long double f(long double sample) { return 2.5*exp(-sample)-3*sin(sample); } long double fp(long double sample) { return -2.5*exp(-sample)-3*cos(sample); }[/CODE] I'm trying to write code for a Newton-Raphson algorithm. I have it in recursive form …

Member Avatar for denizen08
0
184
Member Avatar for Kruptein

Hi I'm trying to find a way to find the first avogadro cipher whose digital sum exceeds 100, I've come to: [code=python]#!/usr/bin/python def dig_sum(n): lst = list(str(n)) ln = len(lst) sm = 0 while(i < ln): sm += int(lst[i]) return sm def avo(i,j,k,c): k = j j = i + …

Member Avatar for Kruptein
0
318
Member Avatar for col415

[B]Bsplayer is a videoplayer. I want to start bsplayer with the parameter -stime-x, where x is the amount of seconds. This result in playing a movie from say 23 minutes 10 seconds with the parameter -stime=1390. The whole thing I can manage to do in [COLOR="Green"][U]DOS[/U][/COLOR] and looks like: @echo …

Member Avatar for col415
0
142
Member Avatar for fawkman

Hi guys, I am working on a conversion of the Mandelbrot Fractal from Java to C# and my programming skills are lacking quite a bit. I am desperately trying to improve but I have come across some errors that are stumping me. I have attached a txt file with the …

Member Avatar for fawkman
0
660
Member Avatar for PDB1982

I have to make a program that uses Periodic Payments and Unpaid Balance (When Payments are made). I am having trouble with the mathematics with my code (I know this isn't a math forum, but I think it's more of a coding issue). The formulas, and output are below.....do you …

0
62
Member Avatar for Byrne86

Hi, Iv had to convert a program from Java to C#, I thought I had done it, but it doesnt work, and Im at a loose end because I cant figure out why it isnt working. Anyway, what it is is a Mandelbrot Set that Im trying to display in …

Member Avatar for ddanbe
0
585
Member Avatar for P3run

Hi im Perun. I started to like games and games development stuff before 1 year. Thx to my gaming love in have learned how to make maps for Quake and Star trek Elite force 2 (i could probalby do and for rest .bsp based game) i learned things how to …

Member Avatar for js112
0
156
Member Avatar for bcohenllc

Alright.. i figured out mostly everything but my math is still screwing me up. I need to accumulate running totals for number of checks and number of deposits ;and total value of checks and total value of deposits. Im supposed to do this by looping through my arrays and this …

0
175
Member Avatar for happygeek

[URL="http://popacular.com/gigatweet/"]GigaTweet[/URL] has been counting the total number of messages posted to Twitter in real time, and the rolling count is almost hypnotic. Overnight the 5 billionth Tweet was posted. So what was it? Perhaps someone [URL="http://www.itwire.com/content/view/28479/53/"]speaking out[/URL] against corporates trying to gag freedom of the press again? Nope. Maybe another …

Member Avatar for InsightsDigital
1
723
Member Avatar for James19142
Member Avatar for mrnutty
-1
221
Member Avatar for SebKom

Hello coders, newbie on board! Just a quick question: How do I calculate the number of steps a bubble sort takes to sort a database of n entries? On my notes it is written that "It is easy to see that a bubble sort of n records requires n−1 comparisons …

Member Avatar for BestJewSinceJC
0
108
Member Avatar for ayeshawzd
Member Avatar for umair125

i want to write a function of sign function without using system.math library in c#. plz help me how can i write this code???

Member Avatar for ddanbe
0
92
Member Avatar for Daiosmith

Hello all, I'm having some trouble with a project I am doing and I was wandering if anybody could help me/point me in the right direction. So the gist of what is happening is I have a program that is supposed to be flipping 2 coins independently of each other …

Member Avatar for Rashakil Fol
0
297
Member Avatar for shashikant.v

public class OpenMenuListener implements ActionListener { public void actionPerformed(ActionEvent ev) { if(ev.getSource() == b) { f2 = new JFrame("shashikant verma"); p2 = new JPanel(); f2.getContentPane().add(p2); String str = "<html>"+"<h>"+"<P ALIGN = \"CENTER\">"+"<i>"+"<font size = \"10\">"+"<font color= \"#800080\">"+"2. Definition of Function<br>"+"<br>"+"</i>"+"</h>"+"<P ALIGN = \"LEFT\">"+"<font size = \"5\">"+"2.1 "+"<u>"+"Mathematical Definition <br>"+"</u>"+"<P ALIGN=\"LEFT\">"+ …

Member Avatar for majestic0110
0
113
Member Avatar for Geekitygeek

I'm currently re-writing a bit of code and i'm in two minds about which way to take it. Advice would be greatly appreciated :) The application is used to control a USB circuit board. The board has 32 analog outputs. The outputs are switched on and off by sending a …

Member Avatar for Geekitygeek
0
194
Member Avatar for squidder11

Hi, I have a gridview that I use to display the results from 50 different SQL database queries. The gridview is populated and built dynamically (Auto-Generate fields) at runtime based on a query that the user selects. When the data is displayed it looks like this: A B C D …

Member Avatar for carobee
0
152
Member Avatar for procomp65

Hi I need to format a decimal value to time and then display it in a textbox in the proper format. eg: double value = 1.25 to "1:15" I do not have a clue how to go about it Thanks

Member Avatar for procomp65
0
3K
Member Avatar for MervinKoops

Hello, I need to create a function which takes parameters for a circle and checks if a given point(x,y) lies within the circle (or on the edge). Like this: [CODE]public static bool PointExistsInCircle(Double CircleX,Double CircleY,Double CircleRadius,Double PointX,Double PointY) { needs to return 'true' if the point is in the circle, …

Member Avatar for MervinKoops
0
185
Member Avatar for codedhands

Hello Good people,am not so sure if this should go here,i am student who is interested in developing a search engine that indexes pages from my country.I have been doing my research on Algorithm to use for sometime now and i have found HITS and PageRank as the best out …

Member Avatar for almostbob
0
202
Member Avatar for leadenwinter

I'm a total newbie and.. with the code above.. What I want to do is have 10 dValue numbers, but if, of those 10 I only enter 5 values, the exe shouldnt ask me to enter all 10 and just add the 5 values I entered when I press the …

Member Avatar for MattyRobot
0
222
Member Avatar for ellyokutoyi

Hi everyone, am Elly from Kenya and a Student taking Mathematics and Computer Science.Am into Java Programming and Database Systems-Oracle, and also wed programming. Hope my stay here will be an educative one.Ciao!

Member Avatar for quicktpgo
0
39
Member Avatar for vbCNEW

Hi, Im very curious how to compute exact probablility of a certain slot machine games? Even samples will do. Thanks...

Member Avatar for rob-lozyniak
0
114
Member Avatar for rob-lozyniak

I am aware that JavaScript arithmetic does not handle either really large numbers or decimals well. This is why I have made this library of functions. I am posting it here rather than under "code snippets" because I would like to learn from your comments. Along with the library is …

0
1K
Member Avatar for newsguy

When it was reported this week that [URL="http://www.itwire.com/content/view/20747/1066/"]Professor Stephen Hawking[/URL] had been taken into hospital and was "very ill" the overall mood of the media seemed to be that the Lucasian Professor of Mathematics at Cambridge University and author of the best selling 'A Brief History of Time' book was …

Member Avatar for NicAx64
0
423
Member Avatar for happygeek

Stephen Wolfram is a British physicist perhaps best known for his work in creating the computational software Mathematica. That could all soon be forgotten if his Wolfram Alpha computational data engine proves to be the Google killer that some are suggesting. After all, it claims to be able to answer …

Member Avatar for yegg
0
324
Member Avatar for newsguy

According to the [URL="http://news.bbc.co.uk/go/pr/fr/-/1/hi/business/7582081.stm"]BBC[/URL] there are now 16.5 million UK households which have Internet access. Not only is that figure up from last year, up by 1.2 million to be specific, but it also means that some two-thirds of UK homes are now online. The Office for National Statistics figures …

0
119
Member Avatar for happygeek

There are lies, damned lies and statistics. Or something like that. However, there are also some really interesting figures emerging about online life right now which are worthy of repeating here. How about [URL="http://community.zdnet.co.uk/blog/0,1000000567,10007735o-2000537720b,00.htm"]this report[/URL] that the numbers of web sites on the Internet has risen from, can you believe …

Member Avatar for jwenting
0
191
Member Avatar for happygeek

Two statistics entered my radar today and stopped me dead in my tracks, which doesn’t happen often. Both concerned the remarkable growth in the connectivity of the Chinese population. The first comes courtesy of the [URL="http://www.cnnic.net.cn/en/index/index.htm"]China Internet Network Information Center[/URL] and reports that the total number of Internet users in …

Member Avatar for happygeek
0
222
Member Avatar for happygeek

They say it is a ‘man thing’ this fantasy about swapping their wife or partner for someone new. Unfunny jokes about trading up to a newer model abound, some even indulge in a swinging lifestyle. But now it seems that some 13% of men in the UK, according to new …

Member Avatar for stargazinc
0
551
Member Avatar for happygeek

[URL="http://www.rackspace.co.uk"]Rackspace Managed Hosting[/URL] has today sent me the formula to create the perfect website, and being a nice chap I felt I had to share it with you, so here goes: [B]Pwebsite = { ((14.14* EaseNav) + (13.56*Speed) + (13.11*CleanDes) + (10.89*Func) + (10.89*Up)) – ((12.63*Pops) + (10.32*Ads) +(5.21*MultiM)) } …

Member Avatar for tleisher
1
293
Member Avatar for happygeek

In an astonishing display of pique, Google (the new Microsoft) has complained bitterly to both the US DoJ and the European Commission about Microsoft (the old Google). What exactly has the Boy God Gates done to annoy billionaire double act Brin and Page so? At the risk of reading like …

Member Avatar for Texjd
0
255
Member Avatar for blud

Recently I've been selected to participate on quite a few of the google 'beta' projects, such as analytics, Company based e-mail, and their google page maker. First off, let me just say that all of the google projects are wonderful. I've been playing with the google analystics recently and the …

Member Avatar for blud
0
212
Member Avatar for Dani

For those of you webmasters out there who are running Google Analytics ([URL]http://www.google.com/analytics[/URL]) then you can welcome a new feature ... site overlay. It's a feature that so far I have only seen in paid analytics software, so it's definitely a more than welcome addition. Google Analytics logs pageviews to …

Member Avatar for clarinetalex
0
268
Member Avatar for kc0arf

At the US Association of National Advertiser's annual conference in Phoenix, Arizona, Google's Eric Schmidt said that "We did a math exercise and the answer was 300 years". "The answer is it's going to be a very long time". Google right now claims they have 170 terabytes indexed so far, …

Member Avatar for blud
0
232

The End.