File:Three vector majorization relations.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 576 × 576 pixels, file size: 11 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Three vector majorization relations

    Python

    import matplotlib.pyplot as plt
    import numpy as np
    
    # Define the x values
    x = np.linspace(0, 1, 400)  # More points for a smoother curve
    
    # Calculate the y values for each function
    y1 = np.sqrt(x)
    y2 = x
    y3 = 1 - (1 - x)**2
    
    # Create the plot
    plt.figure(figsize=(6, 6))  # Set a square figure for 1:1 aspect ratio
    plt.plot(x, y1, label='x')
    plt.plot(x, y3, label='y')
    plt.plot(x, y2, label='z')
    
    plt.title(rf'$x \succ z, y \succ z, \neg(x \succ y), \neg(y  \succ x)$')
    
    plt.xlim(0, 1)
    plt.ylim(0, 1)
    plt.legend()
    
    plt.gca().set_aspect('equal', adjustable='box')
    plt.xticks([], [])
    plt.yticks([], [])
    
    plt.show()
    
    plt.savefig('majorization.svg')
    

    Date
    Source Own work
    Author Cosmia Nebula

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    19 January 2025

    image/svg+xml

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current02:42, 20 January 2025Thumbnail for version as of 02:42, 20 January 2025576 × 576 (11 KB)wikimediacommons>Cosmia Nebulafx

    There are no pages that use this file.