473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Discrete math and programming

I need advice on how to approach the following problem. Can I use C++ to write a program that classifies functions? Using relations from two sets to determine whether they are functions, compositions etc.

Are there resources I can use to begin this program; since I am a novice programmer?
Feb 3 '07 #1
6 5709
willakawill
1,646 1GB
Hi. I don't think there are many limits on what you can design with C++. There is code out there that may be of assistance to you and the learning curve will be brutal. check this out...
Feb 3 '07 #2
Thank you, but I am still in the dark. I dont even know how to input relations from sets and test for functions. I dont wish to sound inept but infact I am. I intend to search some C++ books but hoped to find a starting point online.
Feb 4 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Thank you, but I am still in the dark. I dont even know how to input relations from sets and test for functions. I dont wish to sound inept but infact I am. I intend to search some C++ books but hoped to find a starting point online.
IronEagle

Can I suggest you present a simple mathematical problem involving relations and sets with specifics and then start with basic questions of how to program it. Start small and it will build over time.

Mary
Feb 4 '07 #4
Write a program to classify functions.Input two relations R1,R2 both from a set A to a set B, as ordered pairs (a,b). The sets must be specified. Test whether the relations are functions.

#include <Set.h>
Set<int> A,B;

I have no other resource of code to use to declare these relations etc.
Does this make sense?
Feb 4 '07 #5
Banfa
9,065 Expert Mod 8TB
Test whether the relations are functions.
This sounds like maths speak, but I do not know what it means.

We can help you with the programming skills but you are going to have to describe your problem so we can understand it.

Do not feel constrained to write in C/C++ which you are not terribly familiar with yet, explain your problem in the language you find easiest making it clear what operations need doing.

For instance how do you test if a relation is a function?
Feb 5 '07 #6
RedSon
5,000 Expert 4TB
IIRC a relation is a function if it passes a vertical line test. Or is it horizontal? I can never remember. You will probably find better help if you were to find a mathmatics forum. Most of the experts on thescirpts have forgotten all their math knowledge over time since none of us really use it.
Feb 5 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Bibby | last post by:
I'm interesting in studying OOP programming languages on my own: C, C++, Java. I haven't studied the big 4 math subjects in my last year of high school, Calculus, Algebra, Geometry, Statistics....
12
by: xeys_00 | last post by:
I decided I need to understand math more to help me with programming. Not to mention, eventually in my degree plan I will need to do it anyway. How much math have people in this forum taken, and...
2
by: Francois Vanderseypen | last post by:
Imagine a discrete 2D space of any size. Say, you have a 100x100 pixels (.net) panel and you have discrete cells of 10x10 pixels. Thinking e.g. of the game of life. I would like to draw a line in...
10
by: jack | last post by:
Hi guys, I am working on a project which requires an implementation of discrete event simulation in C using linked lists. I would greatly appreciate if someone could provide with some sources...
0
by: Alison Givens | last post by:
I have the following problem. (VB.NET 2003 with CR) I have a report with a multiple-value discrete value and a rangevalue. The report shows fine in the viewer, but when I hit the export to pdf...
1
by: khaleel.alyasini | last post by:
anyone could point me out where did i do wrong? it seems that i can't get back the original Lena image after the IDCT(inverse discrete cosine transform) process. the output raw image is nothing...
2
by: zfareed | last post by:
Can anyone suggest some resources (websites/books) to learn coding discrete math problems? I have a problem involving sets,relations and functions and even though the logic is clear I dont know...
2
by: Affan | last post by:
Hi, I am writing a discrete event simulator and want to simplify the analysis of multipath by trigging an arrival of multipath based on a the receiver distance from sender- say 'd'- and a...
3
by: illusion.admins | last post by:
Has anyone had experience with or implemented a Discrete Cosine Transform in C#? Found code for FFT which I have taken advantage of and modified for my use but can not find a thing for DCT. Any...
2
Banfa
by: Banfa | last post by:
Right I am actually using SQL Server 2005, however this is a general question about table design that is probably relevant to any database engine so I am going to ask it here since this is the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.