OzoneAsai commited on
Commit
cc483b8
·
1 Parent(s): 6ee71a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -242,7 +242,7 @@ elif selected_function == "問題生成":
242
  # 例: (x + sqrt(5))*(x - sqrt(2)) = 0
243
  a = random.randint(min_value, max_value)
244
  b = random.randint(min_value, max_value)
245
- init_problem = f"(x + sqrt({abs(a)}))*(x - sqrt({abs(b)})) = 0"
246
  expression = init_problem
247
  if expression:
248
  result = expand(expression)
 
242
  # 例: (x + sqrt(5))*(x - sqrt(2)) = 0
243
  a = random.randint(min_value, max_value)
244
  b = random.randint(min_value, max_value)
245
+ init_problem = f"(x + sqrt({abs(a)}))*(x+ sqrt({abs(b)})) = 0"
246
  expression = init_problem
247
  if expression:
248
  result = expand(expression)