801 Topics
![]() | |
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 | |
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 … | |
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 … | |
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 … | |
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 $ $ $ $ $ $ $ $ $ $ $ … | |
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 ... | |
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 … | |
how do i retrieve complex numbers (a + jb) so that just a appears in one textbox and just b appears in another textbox? | |
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 … | |
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 … | |
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 = … | |
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, … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 + … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
how do i solve this problem r+5(r-2)=28 3(r+4)+5(r+2)=102 | |
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 … | |
| |
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??? | |
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 … | |
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\">"+ … | |
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 … | |
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 … | |
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 | |
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, … | |
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 … | |
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 … | |
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! | |
Hi, Im very curious how to compute exact probablility of a certain slot machine games? Even samples will do. Thanks... | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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)) } … | |
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 … | |
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 … | |
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 … | |
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, … |
The End.