Ask Your Question

# Revision history [back]

The "minimize" wrapper has better Sage integration (e.g. symbolic gradients). The equivalent of the above example would be something like

sage: var("x, y")
(x, y)
sage: f = x^2 + y^2 - 1
sage: g = x - y^2
sage: eqs = f, g
sage: minimize(norm(vector(eqs)), [1.0, 1.0])
Divide-by-zero encountered: rhok assumed large
Warning: Desired error not necessarily achieveddue to precision loss
Current function value: 0.000000
Iterations: 57
Function evaluations: 124
Gradient evaluations: 123
(0.61803398875, 0.786151377757)


So if you wanted a one-liner, something along those lines might do it.
{"ft_lang_label":"__label__en","ft_lang_prob":0.72062767,"math_prob":0.95953417,"size":666,"snap":"2021-21-2021-25","text_gpt3_token_len":217,"char_repetition_ratio":0.09516616,"word_repetition_ratio":0.0,"special_character_ratio":0.3753754,"punctuation_ratio":0.2013889,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.984794,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-25T02:02:29Z\",\"WARC-Record-ID\":\"<urn:uuid:c312f4f1-7f30-4833-952b-65ec55217767>\",\"Content-Length\":\"15176\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e9722d22-2a39-4dc6-9ca1-aa243da7cead>\",\"WARC-Concurrent-To\":\"<urn:uuid:94697d99-a184-4a38-bd32-8e1afdd839bb>\",\"WARC-IP-Address\":\"194.254.163.53\",\"WARC-Target-URI\":\"https://ask.sagemath.org/answers/12291/revisions/\",\"WARC-Payload-Digest\":\"sha1:4HZVFMFWEBTEIIVHB3MN3GHPFZEZ7MQS\",\"WARC-Block-Digest\":\"sha1:3HFKNN7E6I2QQZVGVVPI4A53D43YJWFZ\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623488560777.97_warc_CC-MAIN-20210624233218-20210625023218-00279.warc.gz\"}"}