Anonymous
i guess so
Puspam
i guess so
That's called integration
Anonymous
well I am working with activation functions and they call it partial derivative in ML
Samarth
I guess thats what you want. To use the value which is returned from the function i.e been through calculations?
Anonymous
yep
Anonymous
so 1 / cosh(0.5^2) = 1 / cosh(tanh(0.5)^2) ?
Wojak
Anonymous
#include <unistd.h> #include <sys/file.h> technically any program I make using these should also compile on POSIX / BSD systems ?
Anonymous
afaik <sys/file.h> is not part of POSIX, so technically speaking no
<sys/file.h> is probably supported on most POSIX systems though? BSD at least ?
Anonymous
<sys/file.h> seems to be supported on BSD / UNIX at-least
olli
Posix does not require this file to be present tho, I know QNX provides it for compatibility reasons
olli
ah nice ! blackberry ?
Yes, BB acquired them in 2010
Anonymous
Cool I was just looking at their Punkt MP02 phone, very much up my street but not for the 200-500 USD price tag X'D
Sai
Why using gets() function is dangerous..?
Anonymous
Why using gets() function is dangerous..?
Because it can give rise to segmentation fault
Anonymous
There is no limit how much data user can input
Anonymous
If buffer is of 10 bytes and user input is more than 10 bytes than gets simply take the user input and store it into buffer and it will give rise to segmentation fault
Anonymous
You can use fgets instead of gets
Priori
Cab anyone suggest me an easy c compiler like turbo
Priori
Means I am getting confused with the GUI
Priori
Anyone please help
Anonymous
Then download gcc
Anonymous
Write your program
Anonymous
In any text editor
Anonymous
And compile it using gcc
Priori
Kkkk
Priori
I just heard about intel CCP is it good
Anonymous
I just heard about intel CCP is it good
I never used it and never heard of it
Priori
And compile it using gcc
How to compile using gcc
Priori
I have installed it
Priori
And typed the program in notepad
Anonymous
Save it file_name.c
Priori
Kkk then
Anonymous
And compile it using
Anonymous
gcc file_name.c -o file_name
Anonymous
Cmd?
Yes
Anonymous
gcc file_name.c -o file_name
-o file_name is optional Only if you want to the exe file to be of specific name If you don't use -o it will give output a.exe as default
Priori
Thank you ☺️
Rishita
Any one solved Hacker rank Armstrong no. ?
Anonymous
Tohirjon
#include <stdio.h> int main() { int x,y; printf("Write integer between 0 and 50: "); scanf("%i", &x); printf("Write integer between 60 and 100: "); scanf("%i", &y); printf("%i + %i = %i\n", x,y,x+y); return x+y; }
Tohirjon
still i haven't learned this statement, can you teach how to use it and for what should i use it, please
Tohirjon
what channel from utube and what book are you recommend ?) I'm new in this sphere, so i can't differ
V01D
And Switch case, and ternary
V01D
Oh my bad. I just woke up and all I saw was int x and comparison and if statement
ברני
What additional condition should I add so that x and y cannot get a value greater or less than what printf says?
If (x< 0 && y>100){ printf("oops") ; } else { (what you wanted to do) } That can maybe help?
ברני
still i haven't learned this statement, can you teach how to use it and for what should i use it, please
I'm learning myself, I think the best way is to check with Google, ask "if statement on c" and you'll see alot of options
V01D
Haha, yeah
ברני
Yayy my first help. 😊
V01D
scanf.... if (x > 50 || x < 0) return -1; printf.... scanf.... if (y < 60 || y > 100) return -1;
Optionally you could use unsigned data types to avoid a conditional OR in the first if statement.
V01D
It's not better to write it in one if statement then 2?
I just like to use 2 if Statements so I can terminate right then and there.
ברני
oh great another math question that I want to kill my self..."⦁ Write a function that receives 4 coordinates that represent 2 points and returns the distance between them. The formula for the distance between 2 points is:"
ברני
Create an array and pass it to the function
they don't want us yet to do arrays, they gave me the answer but I don't understand it
ברני
https://onlinegdb.com/SJDVm3U_P
ברני
that's what they want me to do... I'm trying to understand the logic...
V01D
that's what they want me to do... I'm trying to understand the logic...
https://www.tutorialspoint.com/graph_theory/pdf/graph_theory_basic_properties.pdf
Manish
Hi , I am passing cmd args as --abc '{"a"}' and cmd treats args as --abc \{\"a\"\}. Why this behave like above? Thanks!