ok = np.isclose(customer_value_feign, customer_value_honest, rtol=1e-5) and np.isclose(vendor_value_feign, vendor_value_honest, rtol=1e-5) and all(np.isclose(ix_feigned, ix_honest, rtol=1e-5))
if not ok:
print(f"{wallet=}")
print(f"{honest_valuation=}")
print(f"{feigned_valuation=}")
print(f"{vendor_valuation=}")
print(f"{quantity=}")
print(f"{ix_feigned=}")
print(f"{ix_honest=}")
print(f"when feigning, you feel like you pay {customer_value_feign}")
print(f"when feigning, they feel like they receive {vendor_value_feign}")
print(f"when honest, you feel like you pay {customer_value_honest}")
print(f"when honest, they feel like they receive {vendor_value_honest}")
print(f"{'OK' if ok else 'bad'}")
break
oks += 1
print(f"{oks} samples ok")
Want to print your doc? This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (