Som
How much mathematics is required ? Like all i know is linear algebra is required for ai and all stuffs? Is that true?
Wisenky
Yeah Is just linear algebra enough ?
Som
Never heard
Francisco
Som
Som
Strong concept of linear algebra is required for ai
Francisco
The most important aspect of machine learning and ai in general is statistics and probably numerical analysis
Som
Oh i see
Francisco
For example, the gradient descent method is a numerical method in essence. Linear regression is a statistical tool
Som
Oh
Francisco
Obviously, you probably won't need to know all that stuff in depth unless you plan to improve an existing model or develop a new one. Most of the times, using existing models is enough for your purpose
Chirag
In what sequence does Arithmetic operators work
Francisco
But knowing a little bit of where all this stuff comes from is never a bad thing
Chirag
in C language
Anonymous
Anonymous
In what sequence does Arithmetic operators work
it is unspecified to promote optimisation
v1 = f(x) + g(y);
v2 = f(x) + g(y);
it is perfectly fine for a system to run f(x) and then g(y) in the first case and g(y) and then f(x) in the second case
Anonymous
How to study progamming in online
Anonymous
I've read the rules and I agree with them
Anonymous
Hi I am denanda, thanks for receive me
Francisco
I mean, you need multivariable analysis to proof its consistency, of course, but as any other numerical method. That's why I consider it to be a numerical analysis method
Francisco
Numerical analysis and pure analysis are actually two different fields in maths, even though numerical stuff depends on analysis tools for the proofs
Francisco
We can argue where to teach every algorithm. Gradient descent isn't normally taught in applied mathematics subjects. I learned it in machine learning, even though I've studied every applied maths subject. That doesn't mean gradient descent isn't part of applied maths and, specifically, numerical analysis
Francisco
Not only you're asking for homework, but also didn't even bother to translate to English so everybody can understand that
Francisco
Okay, I agree on that. It's just that we have to get things right. Of course AI-oriented books should cover those topics
Anonymous
/warn
Francisco
As I say, going deeper into the maths is useful to those ones that are developing new stuff, not the ones using the models
Halit
QUESTION 5) When the following program particles are run a) what will be the screen outputs b) first describe the error (s) (if any) contained in each and the error (s) can be corrected briefly explain how to do this.
main() {
a)
char string[]="welcome";
display(string); }
void display(char *string) {
printf(“%s",string);
b)
char s[]= {'a', 'b’, 'c', \n’,
“c°,"\0'};
char *p,*str,*str1;
p=&s[3];
str=p;
str 1=s;
printf(“%d",++*p+ ++*str1-
32); }
int k,m;
float x y;
c)
scanf(“%d%d"a,b);
(x+y) = k+m;
printf(“%f\n",y);
if( k <m <5)
printf(“k ve m 5'ten buyuk\n")
else
printf(“ya k yada m 5'ten
buyuk\n")
struct ogrenci{
char *adsoyad[30];
struct tarih dg;
Jogr;
struct tarih {
int gün,ay,yıl;
};
scanf("%d%d%d%d", ogr.kytno,
&student.dg.gün,&student. dg.ay,
&student. dg.yıl);
}
d)
Halit
Is there anyone who can help?
particaney 🐸🍲
str 1=s;
printf(“%d",++*p+ ++*str1-
32) why are there so many +
Anonymous
particaney 🐸🍲
Gets me confused
Dheeraj
/get cbook
Chirag
/get rose_as_my_girlfriend
Chirag
/get learn
Chirag
/get bro
Tushar
!notes
Tushar
#best
Tushar
#best-bool
Tushar
#best-book
Tushar
#learn
Tushar
#freeprogrammingbooks
Hermann
how truncate uint8 array in c? is memset the best way?
Alex
what do you mean truncate? memset writes to a memory
Hermann
what do you mean truncate? memset writes to a memory
[1,2,3,4,5,6,7,8,9,10,12,13,14] to [1,2,3,4,5,6,7,8,9,10]
Alex
you should allocate array on heap. then you should make reallocation to smaller size
Alex
or use std::vector
Alex
memset is not the option
Hermann
im in C
Hermann
so, create new aarray?
Hermann
with malloc?
Alex
yes, you can use realloc to array to change size
.
Can anyone please explain me why the following gives the ascii value of the indexed ch:
Char string[] = "Hello"
Char *ch = string
Printf("%d", 3[ch])
O/p is 108, which is ascii of 'l'.
I didn't understand the 3[ch] part.
What is this type of syntax?
Anonymous
Anonymous
Anyway
Alex
Anonymous
// defining string array
Char string[] = "Hello"
// pointing to the first element of string
Char *ch = string
// Getting the third element and converting it to int
Printf("%d", 3[ch])
Stefan
Anonymous
cursed
You have triggered my aibohphobia
.
Stefan
.
Anonymous
.
:)
Alex
I don`t know any reason to write like i[array]
Appiah Kumah
Appiah Kumah
Please, check it for me. Encryption data using (the digit plus 7)modulus 10)
Alex
array[i] yes. but what about i[array]? its useless, don`t do like that
.
That's interesting to know! Thank you!
Alex
I think the primary goal was to support array[i]. due to implementation way, its is possible to write i[array]. but its bad idea to code like this
Alex
so regardless c or c++ don`t code i[array]
Alex
you will make your code harder to read by human
.
Appiah Kumah
Please, can anyone help me out...please?
Alex
Alex
with UB value
Appiah Kumah
Appiah Kumah
Please, check it for me. Encryption data using (the digit plus 7)modulus 10)
Appiah Kumah
questions
A company want to transmit data over the telephone but is concerned that its phones could be tapped. All of the data are transmitted as two-digit integers.
The company has asked you to write a program that encrypts the data so that it can be transmitted more securely.
Your program should read a two-digit integer and encrypt it as follows:
Replace each by ( the digit plus 7) and modulus 10).
Then, swap the first digit with the second and print out the encrypted integer.
Appiah Kumah
Ok thanks
Anonymous