#🍁・general-2

1 messages · Page 146 of 1

median trail
normal shuttle
#

so, @median trail, would you know if all you need to convert an unstable fluctuating AC current into a DC current is a rectifier and a capacitor?

#

or am I off by a longshot

median trail
normal shuttle
#

oh thank you

vestal pine
#

Went in there and instantly got bored

median trail
shrewd pendant
#

hahahahah

normal shuttle
#

nerds

vestal pine
#

ur a nerd

median trail
#

no u

shrewd pendant
#

ur a rectifier

vestal pine
#

no u

ashen mist
#

@median trail Jaja no te culpo. Tampoco sé mucho de IPv6

median trail
fallow dock
#

creo que podría usar 16 GB de memoria sólo para no tener que cerrar nunca mis subprocesos y buffers en Emacs ,_,

ashen mist
#

Jajaja

fallow dock
#
fun<String> List<String>.doDo() = this.map { it + it }.forEach { println(it) }```any idea on how I could make it properly infer the type of `it` in an extension method like this?
#

oh wait

#

I'm dumb

#

not sure why I wrote the first diamond

#
fun List<String>.doDo() = this.map { it + it }.forEach { println(it) }```there it is
#

I was applying an upper bound

#

I think? no I wasn't

#

I'm not sure why that was legal

median trail
#

Oh wow I now understand how IPv6 addresses work

#

it was confusing

#

SLACC, SLACC + stateless DHCPv6 or SLACC + stateful DHCPv6

this was the most confusing part

fallow dock
#

is DHCPv6 just DHCP for IPv6?

#

xd

median trail
#

yes

#

stateful DHCPv6 works just like DHCP for ipv4

fallow dock
#

hmmm I think I was simply making a generic shadowing String. So it was no different than fun<T>

fallow dock
#

well it turns out even in Java this is legal```java
public class RubMaker {
public static void main(String[] argsv) {
System.out.println(RubMaker.<Integer>check(5, 5)); // --> true
}

public static <String> boolean check(String a, String b) {
    return a == b;
}

}```which is totally legal

#

and it's the same asjava public static <T> boolean check(T a, T b) { return a == b; }

#

damn that's ugly

#

idk why i named it rubmaker

#

I didn't even know it was possible to shadow types in generics like that. It just gives you a warning lol

hollow wedge
#

That is just abuse

#

putting String instead of T

fallow dock
#

a confusing but not that harmful abuse

#

We can go further

#

Java's type erasure lets you do weirder stuff

stray lintel
#

Quisiera ayuda

#

Estoy comiéndome la cabeza

fallow dock
#
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Suppaclase {    
    public static void main(String[] args) {
        List<String> ok = new ArrayList<>(Arrays.asList("A", "B", "C"));
        List<Integer> notOk = (ArrayList<Integer>)(ArrayList<?>)ok; // I am Mr. Compiler and I trust the programmer.
        notOk.add(25);
        notOk.add(35);
        
        ok.stream().forEach(System.out::println); // -> A B C ClassCastException
    }
}```
#

I mean basically a raw generic but dragging the error

#

yes I write everything in Java 8

past harbor
#

@stray lintel

#

Qué te pasa

fallow dock
#

@stray lintel my advice is to just drop the question without asking much

#

so, without asking if "someone knows about X" or "can help me with Y"... just ask

hollow wedge
#

I don't think that is very strange at all

fallow dock
#

well, I'm screwing up the type safety for generics

#

If you don't find it weird because the language allows it, then you won't find anything weird

hollow wedge
#

do you expect the java compiler to detect that there?

fallow dock
#

no

hollow wedge
#

the cast is the risky thing here

fallow dock
#

In fact, it does detect it

#

It warns you

hollow wedge
#

what does it say?

fallow dock
#

that it's an unchecked cast, as expected

hollow wedge
#

ah yeah

#

its very bad practice anyhow

fallow dock
#

that's what I love

#

"let's see how I can write poor but unusual code"

hollow wedge
#

I introduce you to my friend javascript 😂

fallow dock
#

loosely typed languages or similar are fun!

hollow wedge
#

yes and no xd

fallow dock
#
> [...Array(6).keys()].forEach(x => [console.log, console.warn][x % 2](["yes", "NO!!"][x % 2]))
yes
NO!!
yes
NO!!
yes
NO!!```what do you mean
#

I don't really enjoy JS tho lol

#

in real programs sapo

hollow wedge
#

is that weird?

#

that code I mean

fallow dock
#

No, it's ugly and an unusual way to write if you don't want to call it "weird"

hollow wedge
#

hmm, I just mean, is it unexpected?

fallow dock
#

no, it does exactly what I wrote it for (in a convoluted way)

#

what's your point?

#

I was mentioning it was fun though

hollow wedge
#

no nothing, I thought it was supposed to be a demonstration of how fucked up javascript can be

#

you didn't imply that at all, I just assumed it since that is what people like to discuss

#

yeah I like it when functions are first class

fallow dock
#

Erm, if it comes to being fun, I like to do golf sometimes (which this isn't)

hollow wedge
#

i mostly keep away from this sort of stuff

hollow wedge
#

I work with js though, and typescript

#

I like typescript

fallow dock
#

this was genuinely fun

#

and it was for the sake of making it short

hollow wedge
#

yeah golfing

#

never tried it

#

looks fun though

#

:)

sweet cape
#

Hola guys

hollow wedge
#

hola juanín

#

@sweet cape JoePino

sweet cape
#

Hola thorin

#

No dormis?

hollow wedge
#

nunca

sweet cape
#

Uhh

#

Allá no hay restaurantes colombianos?

hollow wedge
#

hmm, tal vez sí

#

qué es lo que tengo que probar?

#

de la cocina colombiana @sweet cape

sweet cape
#

Parcerito

#

Unas empanadas

#

Un tamal y una bandeja paisa

#

Queda melo caramelo con la cocina colombiana

median trail
hollow wedge
#

what is weird about it?

median trail
#

I prefer 255.255.255.0 subnet masks hahahaha

#

255.255.255.192 is just confusing

#

because one would think that the ip addresses 172.10.62 and 172.16.10.126 are in the same subnet

#

but nope

worldly nymph
ashen mist
#

@median trail hay que calcular el binario jajaja

median trail
#

I know ;-;

hollow wedge
#

its 11000000

median trail
#

ye

hollow wedge
#

how do you check if two ips are in the same subnet?

sweet cape
#

@median trail i can’t join to main account in my internet :/

#

I still use claro that it’s my internet provider

#

That’s a real bs

eternal karma
brazen terrace
#

Uuff

#

thanks man

#

gracias crack 🙂

eternal karma
#

es un placer compa

grizzled hedge
#

I’m at that crossroads between mechanical and electrical 🤔

#

I wonder if you could do aerospace with a me or ee - my uni doesn’t offer aerospace engineering as a degree

fallow dock
#

I would assume so. But you could check for job offers or ask in StackExchange Engineering

#

I just want to be an artist man

#

I also feel that if you solely depended on "aeroespacial engineers" (with that specific degree) you couldn't even build a bottle rocket

humble jungle
#

i was gonna tell a joke about time travel but you guys didn’t like it

north bay
#

Jaja

hollow wedge
#

what is happening there?

eager wagon
#

los elefantes que cruzan la autopista sapo

median trail
#

what's the difference between an interface and an abstract class in Java?

real imp
#

iirc interfaces are specific for returning one output

#

as in, no parameters

median trail
#

well interfaces look just like a class

real imp
#

because they are classes

#

if i remember correctly, all interfaces are classes, but not all classes are interfaces

median trail
past harbor
random tulip
#

Más programación no D:

past harbor
#

ignoralos :p

#

Piensa en español

random tulip
#

Yo aquí en modo noob

past harbor
#

¿sabes lo q te pide entonces?

random tulip
#

Bueno ,creo que es lo que te he comentado antes

#

Eso terminé de entender

past harbor
#

pues ve paso por paso

#

lo primero que tienes que hacer q es

random tulip
#

Supongo que asignar el void y demás, valores y después iniciar un bucle while

#

Y dentro poner el printf para que te vaya pidiendo lo mismo hasta dar con el número

past harbor
#

Lo primero que tienes que hacer es pedirle un numero a la persona, o sea, al usuario

#

¿sabes hacer eso?

random tulip
#

Sí, eso sí

eager wagon
#

El programa no decide el número?

past harbor
#

No, Nil

#

Tienes que meter un numero tu

#

vale, pues haz eso

random tulip
#

Vale, hasta ahí llego

past harbor
#

perfecto

median trail
#

@past harbor what's the difference between an abstract class and an interface

past harbor
#

una vez que tienes el numero que tienes que hacer?

random tulip
#

Iniciar un bucle para que vaya preguntando lo mismo hasta encontrar el número supongo

past harbor
#

okay, y que hay en la condicion del bucle?

random tulip
#

Ahí es donde siempre suelo tener el problema

#

No sé qué condición poner

past harbor
#

Vamos a hacerlo fácil

#

tienes que meter un número que no sea menor que 0

#

sabes eso?

random tulip
#

Sería algo como (n>0

past harbor
#

perfecto

#

Ahí te dice "Mientras el numero que me metas sea mayor que eso", te dejaré pasar

#

si no, te mando a la mierda 😄

#

cual es lo otro?

random tulip
#

También comentaba algo de número de intentos así que quedaría algo como (....) || (x>=10)

#

si no me equivoco

#

(x<=10), perdón

#

Básicamente dando a entender que mientras sea x (el número de intentos) menor que el número asignado que es 10, se repite el bucle, y cuando sea igual que 10 ese contador, se sale

past harbor
#

hay intentos?

#

10?

random tulip
#

Sí, 10 intentos

past harbor
#

Bueno, de todas formas, céntrate primero en conseguir

#

que tu bucle sólo acepte numeros mayores que 0 o menores que 1000

#

¿lo has podido hacer?

#

por ahora tenías while(num > 0)

#

te falta la otra condicion

random tulip
#

Mi profesor me comentó de utilizar la función max y min

past harbor
#

sabes que esa condicion

#

está mal, cierto?

random tulip
#

Pues la verdad, no tengo ni la más remota idea

past harbor
#

Te explico

#

while (miNumero > 0 || miNumero < 1000)

#

Tú si metes ahora 1001, te va a entrar dentro

#

Un "or" significa o esto o esto, en resumen, con tal de que la primera condición se cumpla, va a entrar sin mirar la segunda

#

1001 es mayor que 0, así que entrará dentro

#

y pasará de la segunda condición

random tulip
#

Creo que entendí

past harbor
#

intenta arreglarlo

random tulip
#

Me estás diciendo básicamente que no lo ponga separado ¿No?

#

Porque al estar separadas esas funciones, como que entra

past harbor
#

No, te explico la diferencia

#

entre OR y AND

#

Esto es como

#

Tienes varias camisetas, y una lavadora

#

Tu lavadora sólo acepta camisetas o verdes o azules, esto quiere decir que si tienes en la mano una camiseta verde, la pondrás en la lavadora y no vas a comprobar que es azul. En caso de que no sea verde, mirará si es azul, de ser así entrará.
Eso es el "OR", si la primera condición es verdadera, no mira la segunda

#

Es lo que te va a pasar a ti

#

Yo tengo un número, el 54 va a mirar si 54 es mayor que 0, es verdad

#

ahora si te meto un 1020, mirará si es mayor que 0, es verdad también

#

pero tú no quieres que sea mayor que 1000, pero le dará igual va a entrar porque el or ha dado verdadero

#

Tú aquí quieres que se cumplan dos cosas "que sea verde y además azul"

#

eso es un AND

random tulip
#

Ah, entiendo

past harbor
#

Si no entiendes, te puedo explicar de forma más resumida

random tulip
#

Sí, entiendo dentro de lo que cabe. El problema está en que no sé expresarlo

past harbor
#

OR: Si la primera condición se cumple, entro. Me da igual lo que tengas después. Si es falso, miro lo que tengas después

#

AND: Todas las condiciones deben de dar verdadero

#

Sí, sabes

#

Me has dicho antes que habías puesto n > 0 eso está bien

random tulip
#

En sí el programa dice de que al ejecutar el programa, se meta en un bucle y hasta que no diga el número correcto no salgo, o hasta que se cumplan los 10 intentos

past harbor
#

¿cómo se hace para que un número sea menor que 100?

random tulip
#

n<100

past harbor
#

vale, ahora falta la condición

#

OR o AND

#

Piensa en español qué quieres

#

"Quiero que mi número sea mayor que 0 pero a la vez más peque que 1000"

random tulip
#

Tendría que poner en otras palabras and

past harbor
#

eso es

#

haz que pida un numero y si esta entre el rango que tu has dicho

random tulip
#

Pero eso no me lo han explicado en programación, no sé si me lo aceptará tla cual

past harbor
#

diga "ok" o algo

random tulip
#

Lo de or y and solo lo he tocado en base de datos

past harbor
#

no te han explicado el AND?

random tulip
#

No sé si te refieres a que tengo que poner el operando AND en el código

past harbor
#

and es &&

#

or es ||

random tulip
#

ah x

past harbor
#

and = &&

#

or ||

#

and = y

#

or = o

random tulip
#

Entonces sería (n>min && n<max) si no me equivoco

past harbor
#

muy bien

#

haz ahora que pida un numero

#

y si esta en ese rango le diga

#

"has entrado joputa" o algo asi 😄

#

asi sabes q van las cosas como quieres

#

no hagas lo de los 10 intentos aun

#

primero lo sencillo

random tulip
#

tendría que poner un if supongo

past harbor
#

para?

random tulip
#

Ah no, no sé

#

while((x>=10)||(n>min && n<max)){
printf("Introduce el numero\n");
scanf("%i", &n

}

de moemnto tengo esto

past harbor
#

Tienes que pedir un número

#

quita x>10

#

deja eso de lad

#

o

#

Ahora pensemos en español 😄

#

Lo que has puesto ahí es:
Mientras el número que me metas sea mayor que 0 y además sea menor que 100, te voy a dejar pasar para que escribas un número

#

¿Crees que falta algo?

#

o falla algo?

random tulip
#

Creo que por el momento no

#

Como mucho asignar el número aleatorio

#

Para que cuando se diga, salga del bucle

past harbor
#

estás seguro? :P

random tulip
#

Porque el objetivo del programa en sí es repetir el bucle hasta darse ese número

#

Sin contar lo del número de intentos, creo que no

#

O poner el rango de números

past harbor
#
while(numero > 0 && numero < 1000) {
  System.out.println("Introdúceme un número para que podamos jugar: );
  numero = cojo el numero que me den
  }
#

¿Estás seguro que esto está bien?

#

Piensa en español

#

deja el código

random tulip
#

Mientras el número sea mayor que 0 y el número menor que 1000, mensaje de "introducir el número" + captar el número que escribe con el scanf

#

Espero que te refieras a la función de scanf, porque no pillo más

past harbor
#

La cosa es

random tulip
#

xd

past harbor
#

Estás comprobando si la camiseta es azul y roja

#

pero no tienes camiseta

#

¿No te das cuenta de eso?

random tulip
#

Y eso en código es?

past harbor
#

Estás comprobando en el while que el número que se supone que te han pasado cumple las condiciones

#

pero no tienes ningún número

#

el numero lo debes de pedir antes de entrar al while, porque si no, jamás vas a entrar

random tulip
#

Ah pues a mí me ha estado entrando al bucle

past harbor
#

em

#

pasame el codigo

#

tienes inicializado el numero?

#

has puesto 0 ?

#

si pones eso, es normal

#

pero tu no tienes que poner ningun numero por el usuario

random tulip
past harbor
#

qué cosa más rara

#

no debería

#

de todas formas, eso en programación está mal

fallow dock
#

btw, nota al pie

mortal dagger
#

porque n > 0 || n < 1000 es siempre cierto

past harbor
#

es un and

mortal dagger
#

en C no es tan pesado la diferencia entre tipos, todo se representa como número

#

incluso el nulo

random tulip
#

Claro que si pongo ahora el 1001, no me entra

past harbor
#

ah

random tulip
#

Eso no lo dije

past harbor
#

poco trabaje yo con c

#

estoy haciendolo con java

#

de todas formas, no conozco a tu profe

#

pero siento que dberias poner el mensaje arriba del while

#

no tiene sentido que compruebes algo que ni siquiera

#

pediste

#

a mi x ejemplo me rompe

#

ves

#

eso es lo q haces

random tulip
#

Ah bueno, yo no puse nada precisamente porque salía directamente para pedir el número

past harbor
#

buen

#

o

#

yo lo pondría arriba 😄

#

es lo logico

fallow dock
#

no dejes cosas sin inicializar si las declaras dentro de main

#

en C no hay garantía de que sean 0

past harbor
#

na no es eso

fallow dock
#

eso fue un sidenote

past harbor
#

quería enseñarle que por lógica no puedes comprobar cosas

#

que ni siquiera tienes

random tulip
#

Antes estaba siguiendo lo que me comentó el profesor por correo:

#
  1. Defínete tres variables integers x, n, máximo y mínimo, y luego generas el número aleatorio x.
  2. Inicias el bucle: MIENTRAS (no se lleguen a 10 intentos) y (no se haya acertado el número)
  3. Dentro del bucle, debes pedir al usuario un número n para compararlo con el x. Si el número n es mayor que x, querrá decir que se pasó el usuario y por tanto el máximo ahora será n. Si por el contrario el número n era menor que x, querrá decir que el usuario no llegó al valor de x y que ahora el nuevo mínimo será n.
  4. Una vez establecidos los nuevos valores de maximo y/o mínimo, tienes que mostrar por pantalla el mensaje "el número está entre el máximo y el mínimo" y a partir de ahí, continuar la iteración.
#

Por eso me había quedado un poco chocado

past harbor
#

hmm

#

pues.. sigue lo que dice tu profe

random tulip
#

El caso está principalmente en que no termino de entenderle del todo porque no sé plasmarlo mediante códifo

#

código*

fallow dock
#

que ni siquiera tienes
es que C no es un lenguaje que te cuide. Puedes usar variables declaradas sin inicializar

past harbor
#

si sabes, tienes que ir poco a poco 😄

random tulip
#

Cuando se trata de razonar las cosas y plasmarlas, es mi mayor problema

fallow dock
#

pero pueden valer cualquier cosa en memoria xd

past harbor
#

Déjalo así entonces

#

ahora intenta hacer lo de los máximos intentos

mortal dagger
#

una variable declarada va a tener valores random de 32 bytes

past harbor
#

no lo pongas con 50

#

10*

#

pon dos o tres

#

para hacer el test mas rapido

#

haz que pida un numero 3 veces

#

si supera esos 3 intentos, que deje de pedir

mortal dagger
random tulip
past harbor
#

has ejecutado

#

eso y te funciona?

random tulip
#

Nop, no sé como lo había puesto antes que sí me dejaba

#

ah ya sé

#

falta paréntesis

mortal dagger
#

porque x va a tener valores de la forma 2379827982, 7493274932, -79273921

#

de manera súper random

#

si ejecutas varias veces, algunas veces va a entrar, algunas no

#

porque -743828794328 es claramente menor que 3

past harbor
#

cuando lo termines

#

me dices a ver

random tulip
#

Uhm, lo pongo y me sigue saliendo + 3 vece

#

veces*

past harbor
#

por qué será :p

#

has puesto

random tulip
#

Si es por lo del >, me di cuenta que lo puse mal

#

Pero lo puse al revés e igual xd

past harbor
#
int misIntentos = 0;

while(misIntentos > 3) {
...
}
#

eso pusiste creo

random tulip
#

No sé ya ni lo que he puesto

#

me perdí

past harbor
#

a ver

#

enseña

random tulip
#

He toqueteado de todo

#

poniendo x=3, x=0, cualquier cosa

#

creo que me falta asignar algo como x=x-1

#

para quitar los recuentos

#

o x=x+1

past harbor
#

si pones x<=3 tendrá un total de 4 intentos

#

q intentas hacer ahora?

random tulip
#

Planteaba hacer que si pasabas los intentos, se acababa el programa

exotic kiteBOT
random tulip
#

Que es lo que pide en la actividad

past harbor
#

okay

#

puedes hacer x=x+1 o x++

#

no se como quiere tu profe

random tulip
#

Sí, da igual de las 2 maneras

past harbor
#

ah pues como quieras

random tulip
#

Sigue estando en bucle sin terminar cuando pongo + de

#

3

mortal dagger
#

en la tercera línea pone x=0

random tulip
#

Vale, si quito el x=0 no me entra directamente

past harbor
#

a ver

#

pasa el codigo

random tulip
#

Ahora tendré que poner un x=x+1 para que se vaya completando hasta el 3 supongo

#

Voy a retocarlo y lo paso

past harbor
#

De todas formas, la condicion para mi esta mal 😄

#

no se como va en C pero eso deberia darte error

#

En Java, lo primero que se comprueba son los AND, o sea la segunda condición que tienes escrita, y después el OR. Entonces si tú metes un 5, va a pasar de los intentos, jamás va a entrar a comprobar porque has puesto

#

O se cumple lo de los números o se cumple lo de los intentos

#

y como el AND tiene mas prioridad, el or jamás va a mirar tus intentos

#

en Java es asi, no se en C?

random tulip
#

Yo ni idea

past harbor
#

ejecuta a ver

#

si te rompe

#

deberia dejarte 3 intentos

random tulip
past harbor
#

si te deja mas de 3 o imprime por pantalla el resultado de x

#

vale

#

si

#

es como java entonces

#

es un AND

#

pero entiendes por qué?

random tulip
#

no xd

past harbor
#

vale aver

#

a ver*

#

while(i < 3 || numero > 0 && numero < 1000) esto es lo mismo que esto

#

while(numero > 0 && numero < 1000 || i < 3)

mortal dagger
#

eso sigue funcionando porque se cumple la segunda condición

past harbor
#

A la hora de comprobar cosas, el while tiene como proridad mirar primero las condiciones "AND"

mortal dagger
#

si tira un número como 1245 o cualquiera mayor de 1000 se quebraría

past harbor
#

Tú has metido un 5, y eso cumple la primera condición

#

como te dije antes, en un OR si se cumple lo primero jamás va amirar lo segundo

#

y es lo que te pasa a ti

calm flax
#

es solo una cuestión de poner más paréntesis, no?

past harbor
#

eh 😄 bueno..

#

no haría eso la verdad :p

mortal dagger
#

no, de cambiar el or por un and

past harbor
#

Eso es ser un chapuzas

calm flax
#

jeje

random tulip
calm flax
#

regla nº 1 de la programación

#

si funciona, funciona

past harbor
#

Tienes que entender bien qué es un and, qué un or y quién tiene más prioridad

random tulip
#

Ese soy yo

past harbor
#

No eso es ser chapuzas

mortal dagger
#

while(x <= 2 && n < 1000 && n > 1)

random tulip
#

Entonces el que tiene más prioridad es el &&

past harbor
#

si eso es

mortal dagger
#

no

random tulip
past harbor
#

como que no?

mortal dagger
#

cuando se habla de operadores lógicos los 2 tienen la misma precedencia

past harbor
#

em xd

calm flax
#

se lee de izquierda a derecha no?

mortal dagger
#

así es

calm flax
#

depende del lenguaje

#

creo

mortal dagger
#

depende del compilador/interprete la verdad

random tulip
#

while(x <= 2 && n < 1000 && n > 1)
@mortal dagger He puesto esto y ya ni me entra

fallow dock
#

En Java, lo primero que se comprueba son los AND, o sea la segunda condición que tienes escrita, y después el OR
esto no es cierto para ningún lenguaje

mortal dagger
#

porque n no está declarado y va a ser un número muy grande de 32 bytes

past harbor
#

pues ..

#

es lo que aprendi en java 😄

random tulip
past harbor
#

existen niveles

fallow dock
#

es que no estás tomando en cuenta de que hay paréntesis

past harbor
#

y si no

#

lo buscas

median trail
#

he's trying to teach logical operators to a beginner, please guys keep it simple

#

be considerate

fallow dock
#

si tenés (a) || (b && c)

past harbor
#

no veo la necesidad de que le metas

#

parentesis

#

porque eso es ser chapuzas

fallow dock
#

(a) va a evaluarse primero

past harbor
#

si quereis que sea chapuzas, pues que lo sea

calm flax
#

si el compilador lo va a optimizar de todas formas no?

fallow dock
#

y si es cierto, (b && c) no va a evaluarse, hará cortocircuito

past harbor
#

na dejalo

random tulip
#

Estoy en parte así rubycry y por otrarisitas por mi futuro suspenso en programación

past harbor
#

no veo la necesidad de complicarle al chaval las cosas

#

que le enseñen ellos

mortal dagger
#

sí, el compilador es más inteligente de lo que uno se imagina

random tulip
#

:'')

fallow dock
#

man no es pa que te ofendas ytho

mortal dagger
#

int x = 0;
int n = 500;

while(x <= 2 && n < 0 && n < 1000)

past harbor
#

no es para ofenderse

#

es que no veo la necesidad de meter parentesis en algo tan sencillo que es entender

mortal dagger
#

eso te compilaría y podrías probar 3 veces a achuntarle a un número que no sabes que es el 500

past harbor
#

las prioridades

random tulip
#

El 500 por qué?

past harbor
#

y meter parentesis es de ser mal programador

#

porque ni la teoria te la sabes

mortal dagger
#

es un número arbitrario que sí funciona

fallow dock
#

no he sugerido que sea necesario. Es que tu respuesta fue inmediatamente después de ver un código que sí tenía paréntesis

past harbor
#

esta en primero de programacion

#

y le enseñas a usar parentesis

mortal dagger
#

meter parentesis es de ser mal programador
yo, programando en Lisp desde el fondo escondido

median trail
#

guys keep it simple, first warning

fallow dock
#

de hecho dijiste

o sea la segunda condición que tienes escrita
en referencia a ((a) || (b && c))

random tulip
#

int x = 0;
int n = 500;

while(x <= 2 && n < 0 && n < 1000)
@mortal dagger tampoco me va

#

Creo que mejor voy a llorar un rato

#

xD

mortal dagger
#

n > 0

random tulip
mortal dagger
#

tu problema desde el principio es que no inicializaste nada y C lo que hace es tomar cualquier valor de formas mágicas

#

estas son 5 ejecuciones de esto

#
int main(){
  int x;
  printf("%i", x);
}
#

como no le das un valor a x, solo Dios sabe qué te va a salir

random tulip
#

Y esa es la causa que hace que no cumpla esos 3 intentos?

mortal dagger
#

eso es el porqué no entra al ciclo, porque n < 1000 && n > 0 lo estás comparando con números muy raros como 22257828

#

o 84416756

#

o números negativos

random tulip
#

No pero sí entra

#

Osea, sin poner todo el rollo ese, me aparece el mensaje que est´adentro del bucle

#

Y voy poniendo números hasta dios sabe dónde parar

mortal dagger
#

qué es lo último que tienes

#

la versión actualizada

#

la 0.99

#

el release

random tulip
#

Tengo el code blocks 17.12, no sé si te ayuda

#

xd

mortal dagger
#

no po, el código jaja

random tulip
#

q

#

ya me perdí lmao

mortal dagger
#

esto fue lo último que mandaste

random tulip
#

Ah, pues eso tengo

mortal dagger
#

¿sigues con eso mismo igualigual?

random tulip
#

Sí, porque me perdí desde un primer momento

#

xd

mortal dagger
#

córrelo y ponle 4 números en este orden
1
50
700
340
1004

#

son 5, no sé contar, lo siento

#

pero debería seguir dejándote meter números hasta el 1004

random tulip
#

Sí, pero me refiero al tema del contador

#

Se supone que asigno un contador de número de fallos, y si cumples 3 ( que en realidad son 10, pero es para probar y no tardar siglos), el programa se acaba

#

Por eso mismo le asigné el hecho de que si x llega a 3, sale del bucle

mortal dagger
#

claro, pero vamos atacando problemas chicos de a poco, los probamos y si funciona seguimos

random tulip
#

Ah, con eso llevaba desde un principio

#

Solo me fallaba l odel contador

mortal dagger
#

pasa que tienes 2 condiciones que puedes considerar separadas; primero tienes el número de intentos o que el número esté entre 0 y 1000

#

y lo que quieres hacer es lo que el buen amigo te dijo, que quieres revisar si las 2 se cumplen juntas

#

es decir, while(x <= 2 && n > 0 && n < 1000), pero qué pasa, como n si no le declaras explícitamente un valor va a ser un número raro

#

a n, para que cumpla la primera vez, dale un número cualquiera que cumpla la condición

random tulip
#

Con poner un 1 ya es suficiente entonces

mortal dagger
#

así es

alpine cradle
#

@feral drift here peepohide

random tulip
#

Bien, ya está

#

Aún sigue sucediendo eso, pero bueno. Lo puse

feral drift
#

@alpine cradle ok

#

I got these right all the time but it still says need review

#

Even though I always get them right

median trail
#

what's this

feral drift
#

But no matter how many times I get it right in a row it wont change

#

Idk if anyone had this problem

alpine cradle
#

that's weird

feral drift
#

But it is a big problem because when I try to quiz over everything it only shows the "need review"

#

:/

median trail
#

is this an app like anki

feral drift
#

Kind off there is pronunciation of natives

#

And definitions

random tulip
#

@mortal dagger quizás me sigue haciendo bucle porque no he colocado un if diciendo que se quede allí? Es decir, se cumple saliendo pero sigue porque no hay nada más

alpine cradle
#

Do you have access to other quizzes too? or you have to "review" this before continuing?

feral drift
#

I do but I like to review over everything it helps the words go in to my long term memory

#

Like at once

alpine cradle
#

sure

feral drift
#

So what should I do

alpine cradle
#

maybe it's kind of time-streached(?) and the reviews have to be done in periods

feral drift
#

Idk it just looks like a bug

alpine cradle
#

I mean maybe you'd have to review them a couple of days later CrowThink

#

yes. it looks like that

feral drift
#

It usually is just random words mixed

#

That I have learned

#

I guess I could try anki

past harbor
#

@random tulip ¿Por dónde estás?

random tulip
#

Sigo en el mismo lado

past harbor
#

a ver

#

enseña

random tulip
past harbor
#

quieres seguir haciendolo con un or?

#

eso está mal

random tulip
#

No sé, la verdad

#

creo que haré lo que me pide el profesor

past harbor
#

El profesor te lo dice exactamente en la oración

#

Y.. ... y ..

random tulip
#

Ya no sé ni lo que me dice

#

Me estresé con esto xd

past harbor
#

para cuando es

random tulip
#

Tengo que entregar esta y una scuántas más hasta el viernes

#

Y encima me acaban de mandar una actividad de base de datos, y para colmo en inglés

past harbor
#

cuantos debes hacer mas

random tulip
#

Diría que 3 o 4 más

past harbor
#

has puesto el and?

random tulip
#

Estaba tratando de mirar otra actividad para cambiar un poco*

#

Pero creo que me despejaré un rato

#

Aunque bueno, me están explicando más o menos cómo se hace la de antes

past harbor
#

ah

#

te lo está explicando otro?

fallow dock
#

wzrdddddddd!!!

#

deberías retornar 0 al final de tu main btw

past harbor
#

ah, okay

fallow dock
#

no sé, eso asumo porque desapareció misteriosamente

random tulip
#

Y bueno, ya me cansé de programar

#

Espero no volver hacerlo nunca más en mi vida

past harbor
#

ya lo resolviste?

#

@random tulip

random tulip
#

Sí, lo terminé por completo

past harbor
#

¿Todos los ejercicios?

random tulip
#

Luego quedan las 3 prácticas restantes, pero me da a mí que las va a hacer otro

#

Prefiero tomarme varias horas de descanso. Tanta programación y comedura de cabeza estoy harto

#

xD

past harbor
#

Bueno, es normal que estés frustrado o te sientas inútil por no entender o saber cosas "básicas"

#

Yo era igual que tú. Me enfadaba porque no sabía que se pedía un mensaje antes de entrar al bucle

#

Tómatelo con calma y no seas duro, lo que aprendiste hoy te servirá mañana

#

Y sí, cuando te pasen estas cosas de no entender, lo mejor es tomarse un suspiro, tomar aire o algo

#

Quedarse quemado 5 horas delante de una pantalla no te abrirá ninguna puerta

#

A veces, con un poco de aire fresco te das cuenta que era una idiotez

random tulip
#

De eso me dí cuenta, sí

past harbor
#

Y yo te recomiendo, no sé qué te dijo tu profesor, pero

random tulip
#

Pero bueno, lo retomaré mañana o pasado

past harbor
#

te recomiendo que programes en papel

random tulip
#

Sí, él mismo me lo dice

#

Pero bueno, mientras programo nunca se me pasa por la cabeza

past harbor
#

Inténtalo con los otros dos ejercicios que te queden

#

Bueno, ve a descansar

random tulip
#

Ahora me planteaba hacer base de datos, que me han mandado una actividad

#

Lo que tengo que hacer es un poco de chill, porque básicamente es seguir los pasos

past harbor
#

bueno, si pueds seguirlo

#

hazlo

#

si no, déjalo para mañana

random tulip
#

Miraré un poco por encima y haré unas cuántas

#

Si lo acabo, mejor para mí

#

A ver lo que duro

past harbor
#

Si fuera tú, descansaría

#

Mañana te despiertas pronto, y te distribuyes las tareas

#

Debo hacer db, programación y algo más

#

y te pones tiempo y tal

#

terminarás más rápido que quedándote ahora

#

puedes llevarte un dolor de cabeza. La programación es cabeza, y hay mucha gente fuera quemada por esto

#

es mejor que te cuides

random tulip
#

Lo tengo en cuenta

#

Pero tranquilo, con música se me quitan todas las penas

#

Continuaré un poco más, no te preocupes

#

Sé lo que hago

fallow dock
#

qué es lo que estudias?

random tulip
#

Agradezco la preocupación, por eso

#

Actualmente curso grado superior de informática

fallow dock
#

hardcore empezar con C wolfsneaky

random tulip
#

Pues ya ves, empezando en primer año

#

Xdd

ashen mist
#

hola

fallow dock
#

ola berraniejah.

random tulip
#

Hola

#

Acabé base de datos sin problemas

past harbor
#

Me alegra

random tulip
#

Fue fácil, pero se siente satisfactorio acabar algo

median trail
#

I came up with this recursive function for the inorder order of a tree data structure, and it works blobaww

private String InOrden(BinaryNode aux){
        String mes = "";
        
            if(aux.getLeft()==null && aux.getRight()==null)
                return "-"+aux.getData();
            if(aux.getLeft()!= null){
                mes += InOrden(aux.getLeft());                     
            }
            
            mes += "-"+aux.getData();
            
            if(aux.getRight()!=null){
                mes += InOrden(aux.getRight()); 
            }
        
            return mes;
    }
#

aux would be the root

#

mes would just show what's the order of each node

fallow dock
#

that's nice

#

you could make it shorter

#

if you change the logic a bit

median trail
#

I prefer it this way since I came up with it

#

but yeah

hollow wedge
#

nice function

#

recursion is fun

median trail
#

I didn't check any solution online peepohide just in case

I love recursion is so difficult but fun

#

this one wasn't that hard

#

but

#

this is my first recursive function ever

fallow dock
#

I love recursion is so difficult but fun
sounds like you like maths

median trail
#

like one made by myself

fallow dock
#

lol

#

ok I wrote a one liner

median trail
#

peeporofl .

#

one liners in java look terrible

fallow dock
#

yeah

hollow wedge
#

is it this: return L ? inorder(L) : '' + data + R ? inorder(R) : ''?

median trail
#

I thought ? operators weren't used in Java

#

I used it a lot in javascript

#

when using react peepoCozy

hollow wedge
#

I think they are there in java

#

but I don't like them that much if the line is too long

#

gets hairy

fallow dock
#

is it this: return L ? inorder(L) : '' + data + R ? inorder(R) : ''?
@hollow wedge that's exactly it lol

hollow wedge
#

hehe

fallow dock
#

with parenthesis

shrewd pendant
#

ternary is confusing without parentheses hehe

hollow wedge
#

true

fallow dock
#

I thought ? operators weren't used in Java
@median trail ternaries are there in Java, yeah. cond ? result : something else

hollow wedge
#

this one is nice too

const inorder = node => node ? (inorder(node.left) + node.val + inorder(node.right)) : '';
fallow dock
#

but some other languages use them for other things

hollow wedge
#

js style

fallow dock
#

Kotlin uses them a lot for null-safety purposes

#

ternary is confusing without parentheses hehe
@shrewd pendant I actually added them to avoid nesting the ternaries. Or the second one would be inside the first one

shrewd pendant
#

oh ok

#

I was going to say I would expect concatenate to be higher on the order of operations than ternary

#

but I don't really know java

hollow wedge
#

yeah I should have put parens, its bad style to avoid them anyway

fallow dock
#

we're not avoiding bad style here, we're embracing it

#

I'm waiting for my friends

#

to play 90s Doom coop

shrewd pendant
#

lol nice. supposedly the new one is pretty cool too

fallow dock
#

I wish I could play it

#

Kotlin uses them a lot for null-safety purposes
I meant the question marks btw

#

not ternaries

hybrid hull
#

*C# kind of does something similar

fallow dock
#

yes, ??

hybrid hull
#

*Yeah hahaha and .?

#

*C# and Java be similar though

fallow dock
#

?.

hybrid hull
#

*I couldn't remember the order lol I don't use those very often

fallow dock
#

I only wrote C# once really

#

I don't remember much of it. It was kind of comfy I think

hybrid hull
#
  • I've used it a lot because of my uni, but it isn't my favorite by far
fallow dock
#

same

#

was it Unity

#

lol

hybrid hull
#
  • Once hahah
#
  • Other times just wpf apps
fallow dock
#

I probably still have the crap I made in Unity on a video

hybrid hull
#
  • what style was it? We had to make a board game lol
#
  • Unity wasn't required, but my group chose it
fallow dock
#

nah it was a "VR experience that wasn't a game" or whatever

#

it was such a pain

#

that's not the complete gameplay but still

hybrid hull
#
  • That's super cool. I'm more interested in "experience" based uses of software like Unity than games I suppose
#
  • My professor does so much VR stuff it's insane
fallow dock
#

programming this made me insane

#

because my group once day had a meeting without me, the only one I didn't lead, and they totally changed everything

#

"hey we're gonna have like a million possibilities now"

#

so I died. I didn't know any Unity or C# so I had to learn on the fly, but also the idea kept changing all the time

#

all those translations and cinematics are coded, and there are 10 of them

#

Unity made it relatively easy but when you're a beginner and have no time you don't even know if you want to "learn the proper way"

#

I was the only one programming, too

#

translation as in movement

hybrid hull
#

I understand that a lot actually. Basically a single group member of ours chose to use Unity which was way overkill but we stuck with it and it was so much learning. Unity isn't something you can just start using even if you know how to program. There's a workflow. Anyways, one guy didn't program very much at all and the other guy wrote a lot of erroneous code.

#

Only one programmer is crazy though

#

The strumming movements on the characters looked pretty impressive, but I also haven't done very much with animations even on basic shapes

fallow dock
#

the animations were made by someone else, he did a great job

#

all the 3D and animation were done in Blender

hybrid hull
#

Very nice. I want to understand Blender a little bit better, but it never fits into my schedule

fallow dock
#

it's alien to me

#

you could make a donut

#

it's a meme at this point

hybrid hull
#

Hahah I watched a Blender tutorial where a guy made a very detailed Simpsons-esque donut

#

I did not follow along

fallow dock
#

yes, Blender Guru

hybrid hull
#

Get out of my internet history

#

I don't understand why my traveling salesman program is only finding the right solution sometimes

fallow dock
#

I never tried that

#

2 scary 4 me

#

call me when you get the O(n) solution

hybrid hull
#

Don't know if that will happen for an NP hard solution problem

#

Not sure what is wrong with me brain

mild moon
#

hola gente necesito ayuda

#

ni idea como se hace esta mierda

ocean otter
mild moon
#

me he queadado igual XDD

ocean otter
#

Esque tampoco entiendo muy bien que quieres saber xD

#

Ni sé en qué lenguaje de programación tiene que ser

#

ni en qué ide

mild moon
#

c++ con librerias de c

ocean otter
#

No te puedo ayudar entonces xD

mild moon
#

bueno pues nada gracias

ocean otter
#

También ayudaría que lo pusieras en español

#

Porque un par de palabras las he tenido que buscar xD

mild moon
#

Diseñar un programa que:

  1. Pida al usuario que introduzca 10 números enteros, que se almacenarán
    en forma de vector.
  2. A continuación, pedirá al usuario la manera en que se ordenarán estos
    números: o bien de mayor a menor, o bien de menor a mayor.
  3. El programa ordenará la lista y la mostrará al usuario. El mecanismo de ordenación
    debe ser el método de la burbuja, que consiste en revisar cada elemento de la
    lista que será ordenada comparándolo con el siguiente y intercambiándolos de
    posición si están en el orden equivocado. Es necesario revisar varias veces toda la
    lista hasta que no se detecten más intercambios, lo que significa que la lista ya
    está ordenada.
random tulip
#

uy eso no iba aquí

gusty ermine
#

lo primero lo podrías hacer con scanf()

glass dragon
#

jajajaja

#

jowah

random tulip
#

Quería petar el chat a uno srry x

gusty ermine
#

supongo que "vector" se refiere a un array cómo es en librerias C

mild moon
#

si algo asi

gusty ermine
#

puedes hacer

int i;
int k[10];
for(i=0; i<10; i++) {
  scanf("%d", &k[i]);
}

para leer los 10 números en el array

mild moon
#

eres un héroe macho

gusty ermine
#

para el sort puedes hacer

char m; // booleano que define el orden
int j,l;
for(j=0, j<9; j++) {
  for(l=0, l<9-j; l++) {
    if(m==0) { //ascendente
      if(k[l]>k[l+1]) swap(&k[l], &k[l+1]);
    } else {
      if(k[l]<k[l+1]) swap(&k[l], &k[l+1]);
    }
  }
}

// ...
void swap(int a, int b) {
  int swap;
  swap = a;
  a = b;
  b = swap;
}
``` ese podría ser el código para el sort (no estoy seguro pq lo escribí sin probarlo XD)
mild moon
#

bueno voy a intentar entenderlo gracias 🙂

real imp
#

bubble sort is slowwww

#

it should compare with the rest every time it does a switch

#

or take three variables

#

current, pick and max

#

saves current position

#

arr[i] >current?

#

if yes, pick = arr[i]

#

arr[i] > max?

#

if yes, max = arr[i]

#

and then use max to rule out bigger numbers

#

so you get the min

#

actually should be min instead of max, it-d be easier

#

but you save yourself from having to go back and rearrange

#

it's more expensive memory wise, but overall faster

#

it's basically bubble sort but saving the current position so you don't have to go back

#

idk how to explain

#

maybe im wrong

fallow dock
#

it doesn't matter if it's not efficient, it's just an introduction to algorithmic thinking

random tulip
#

yes yes

mild moon
#

spanish please

fallow dock
#

(I don't understand your approach anyway)

proper shore
#

hello

random tulip
#

Hello

gusty ermine
#

hi

#

google

proper shore
#

i know

gusty ermine
#

googlear lo

frigid dock
#

Does anyone know how to better manage stress from online school? I am too stressed from online school.

gusty ermine
#

Where do you do your online classes @frigid dock

#

Like in your room or what?

frigid dock
#

Yeah in my room or in the living room

#

Sometimes outside

gusty ermine
#

I don’t have online classes but if I did

#

I would only do them in my living room since my room is my resting chamber

#

but also how long are you on classes?

fathom flame
#

Yeah in my room or in the living room
@frigid dock organize ur time and create a good study environment

gusty ermine
#

What he said

sweet cape
#

Hi everyone

#

Do you know how to get .edu email?

#

If i’m not currently student in any college in US

hollow wedge
#

probably not possible

#

you need to have access to a .edu domain

sweet cape
#

Yeah, that’s what i figured

hollow wedge
#

why do you want that?

sweet cape
#

Amazon students

#

Lmao

hollow wedge
#

ah

sweet cape
#

Idk if email of high school works as well

dapper bough
#

nah it doesnt

#

only college

gusty ermine
#

Ah no mmes

#

Ni siquiera sé que es Edu

sweet cape
#

Ohh gotcha

cinder canyon
#

teacher said that this formula would help but there is no more information to plug in
[ change in quantity/change in income] * [ average income/average quantity]

sweet cape
#

Ohh jesus

#

I’m studying that rn

#

Let me check that

#

@cinder canyon

#

Did you get it?

#

So i have questions because you have percent in the price and then elasticity of demand is -0,1

#

It’ll be

#

-0,1 = (percentage change in quantity)/(percentage change in price)

#

And then

#

You are finding (percentage change in quantity)

#

But you have the price

#

20*(-0,1) = PCQ (ΔQ)

#

ΔQ = PCQ = -2

#

I think that the direction would be at left because it’s negative, like

cinder canyon
#

yes it seems he gave us the wrong formula in the directions

sweet cape
#

No no no

#

It’s correct

#

But you have other values to replace them

cinder canyon
#

What im saying is
This formula is incorrect for this problem: [ change in quantity/change in income] * [ average income/average
quantity]

This is the correct formula for this problem: Ed ={ [%change in quantity] / [% change in price]

#

he just flipped the questions

#

Although yeah i guess tehy are both for elasticity demand

sweet cape
#

We are using the third one

cinder canyon
#

yeah

sweet cape
#

Yeah, it has a different formulas but if you see, you only have 2 values and then that’s pretty easy to know what you’d use

real imp
#

no sé qué más le haría

#

pero capaz alguien tiene alguna idea

median trail
#

are you working with vectors

#

or just lines

real imp
#

es lógica nomás

median trail
#

what do they mean with "reducir"?

#

AB = CD => AB // CD?

#

so

real imp
#

reducir es simplificar

median trail
#

~(AB=CD) v (AB//CD)?

#

hmmmmmm

#

but how do you simplify a condition?

real imp
#

ahí reduje la expresión

#

y pasó de ser una condición suficiente a ser una necesaria

#

porque si x>4, x tiene que SÍ O SÍ ser mayor a sqrt(10)

median trail
#

well...

real imp
#

porque 4>sqrt(10)

median trail
#

hmmm...

gusty ermine
#

me parece que la primera ya está lo más reducida posible xd

median trail
#

I mean you could say something like

#

nvm

real imp
#

básicamente hay que modificar p para que sea verdadero siempre que r sea verdadero

#

porque en el caso de que r sea verdadero, p se tiene que cumplir

#

sino no es válida la expresión

gusty ermine
#

hm

median trail
#

when to lines are parallel they have the same slope

real imp
fathom flame
real imp
#

cambiar el son paralelas

#

con el tienen el mismo tamaño

#

porque un paralelogramo tipo también tiene rectas paralelas

#

sin embargo los 4 lados son distintos

gusty ermine
#

pero eso haría que no fuese siempre cierto

#

o me estoy confundiendo?

#

no sé nunca presté atención cuando me hicieron lo poco que me hicieron de lógica

real imp
#

o sea

#

uy pará

#

me equivoqué de ejercicio

#

ignoren eso

#

es el siguiente ajsjasj

#

igual sirve

gusty ermine
#

qjbwka

real imp
#

si AB = CD entocnes tienen el mismo tamaño

#

hay dos pares de rectas iguales

#

aunque

#

puede ser 4 * 3 = 2 * 6

#

hmm

gusty ermine
#

esa es la cosa creo

#

mismo tamaño ≠ rectas iguales

real imp
#

ahhh no

#

AB = CD

gusty ermine
#

pero

real imp
#

habla de los ángulos

gusty ermine
#

si hablamos de rectas

#

solo hay dirección

#

esoeso

#

AHH

#

si los 2 vectores son iguales, las rectas asociadas con ellos son paralelas

#

eso es lo que está diciendo

real imp
#

uh pero si no dimos vectores

#

que profe puto

gusty ermine
#

porque el AB con flechita arriba es un vector

real imp
#

solución para el segundo

#

Si x+ y >0 => x e y son números reales positivos, es cierto pero no es suficiente porque podrían ser 0.

#

o sea, el número 3

#

o sea que sería cambiar el > 0 por un >= 0

gusty ermine
#

ahhh

#

entonces tienes que cambiar el que va después del => para que siempre se cumpla

#

recién estoy entendiendo

#

XD

real imp
#

claro

#

es lo que dije

#

xd

gusty ermine
#

perdón u.u

#

soy tontito

real imp
#

porque según la tabla de verdad de los condicionales, sea p->q, si p es verdadero entonces q tiene que ser verdadero

#

sino toda la condición es falsa

#

Si llueve hago tortas fritas

#

Puedo hacer tortas fritas sin que llueva, no mentí

#

Puedo hacer tortas fritas cuando llueve, no mentí

#

Puedo no hacer tortas fritas cuando no llueve, no mentí

fathom flame
#

Si no es verdadero, es falso

real imp
#

Si no hago tortas fritas cuando llueve, mentí

#

esa es la tabla de verdad

median trail
#

x+y>0 => x+y>0+y (if x is non zero)

so we can cancel out both y's and get

x>0

real imp
median trail
#

?

real imp
#

ese no es el enunciado

gusty ermine
#

esa es la duda que sigo teniendo

real imp
gusty ermine
#

espera

median trail
#

yeah but x is non zero then

real imp
#

x > 0 e y > 0 --> x+y>0

median trail
#

and y either

#

yeah I know

real imp
#

no perdón

median trail
#

I'm just not gonna write the whole thing

real imp
#

bah

gusty ermine
#

estoy

#

aa

median trail
#

x,y € R, x>0 and y >0 => x+y>0?

gusty ermine
#

justo cuando pude haber usado mi libro de geometría vengo y lo boto 😔

#

pero si dos rectas son iguales

real imp
#

no

gusty ermine
#

no podrían ser paralelas

#

porque son iguales

#

y ocupan el mismo espacio

#

no?

real imp
#

x,y are more or equal than 0

#

it says non negative

median trail
#

but it says >0 :(

real imp
#

that includes 0

gusty ermine
#

porque la definición para rectas no verticales dice "Tienen misma pendiente y no tienen ninguna intersección en y"

median trail
#

0 doesn't include zero, they can't be zero

real imp
#

yeah but you put the condition there

#

that's not the given condition

gusty ermine
#

entonces si son iguales intersectan y en todo momento

median trail
#

what condition?

#

I'm just using true statements to rearrange the whole thing

real imp
#

por qué borrás tus mensajes?

#

si no lo veo?

median trail
#

who are you talking to?

real imp
#

vers

#

who keeps messaging and deleting

median trail
#

ah